View react.rb
This file contains 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 MainScreen | |
stylesheet MainControllerStylesheet | |
def on_load | |
set_state({ first_name: "Jamon", last_name: "Holmgren" }) | |
attach_events | |
end | |
def attach_events | |
find(:button).on(:tap) { set_state({ first_name: "Todd", last_name: "Werth" }) } |
View common.rb
This file contains 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
#!/bin/env ruby | |
# encoding: utf-8 | |
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: -v for verbose mode." | |
options[:verbose] = false |
View table.rb
This file contains 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 ListFilings < PM::TableScreen | |
title "Docket No. 13-5" | |
def format_cell_title(item) | |
item["type_of_filing"].downcase.capitalize + " of " + item["name_of_filer"] | |
end | |
def cell_whitelist | |
[ :title, :subtitle ] | |
end |