Skip to content

rename triggers to fires #91

Closed
Closed

Description

@catmando

its shorter, sounds better, and has same length as param so lines up nicely in declarations

Activity

  1. added this to the alpha1.3 milestone on Dec 12, 2018
  2. added
    ready-to-releaseInternal Use Only: Has been fixed, specs passing and pushed to edge branch
    on Jan 15, 2019
  3. catmando commented on Jan 15, 2019

    @catmando
    ContributorAuthor

    this has been closed since initial commit to this branch

  4. catmando commented on Jan 17, 2019

    @catmando
    ContributorAuthor

    example:

    class EditItem < HyperComponent
      param :todo
      other :others
    
      fires :save
      fires :cancel
    
      PLACE_HOLDER = 'What is left to do today?'
    
      render      { INPUT(others, placeholder: PLACE_HOLDER, defaultValue: todo.title) }
    
      on(:enter)  { |evt| todo.update(title: evt.target.value) && save! }
      on(:blur)   { cancel! }
    
      after_mount { jQ[dom_node].focus }
    end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-to-releaseInternal Use Only: Has been fixed, specs passing and pushed to edge branch

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions