Sha256: f88a9ce946847d9821a970eeb70b1a556c491933cc7bb6cd86eff80f94cfbee1

Contents?: true

Size: 777 Bytes

Versions: 1

Compression:

Stored size: 777 Bytes

Contents

class Wizard2ViewController< MotionWizard::WizardViewController
  steps Step1ViewController,
        Step2ViewController,
        Step2ViewController,
        Step2ViewController,
        Step3ViewController

  index_item_view_class MyCustomIndexItemView

  stylesheet :wizard_view_controller
  layout :wizard_view_controller

  def setup_index_item_at(index_item, index)
    index_item.label.text = case index
                              when 0..2
                                "I"*(index + 1)
                              when 3
                                "IV"
                              when 4
                                "V"
                            end
    index_item.restyle!
  end

  def when_finished
    self.go_to_step(0)
    self.reset!
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
motion-wizard-0.1 samples/wizard-2/app/controllers/wizard_2_view_controller.rb