Created
July 27, 2015 11:00
-
-
Save skellock/bbec6b05f4951ce6ef3e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def on_load | |
| find(self).apply_style :ilya_cell | |
| find(self.contentView).apply_style :ilya_cell_content | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module IlyaCellStylesheet | |
| def ilya_cell_height | |
| 80 | |
| end | |
| def ilya_cell(st) | |
| st.frame = {w: screen_width, h: ilya_cell_height} | |
| end | |
| def ilya_cell_content(st) | |
| st.frame = {w: screen_width, h: ilya_cell_height} | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def table_data | |
| [ | |
| {cells: [ | |
| {cell_class: IlyaCell, height: stylesheet.ilya_cell_height} | |
| ]} | |
| ] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class IlyaScreenStylesheet | |
| include IlyaCellStylesheet | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment