Skip to content

Proposed Syntax with Modifiers #342

Description

@cah-brian-gantzler

Modifier version with a more streamlined interface

<ol {{sortable-group onChange=this.update a11yAnnouncementConfig=this.myA11yConfig}}>
  {{#each model.items as |item|}}
    <li {{sortable-item model=item}}>
      {{item.name}}
      <span class="handle" {{sortable-handle}}>&varr;</span>
    </li>
  {{/each}}
</ol>

Modifiers will allow this addon to be used with other addons like ember-table, ember-yeti-table, ember-models-table

Modifiers are not meant for classic syntax, so to use these you would have to use angle-bracket syntax

Addons that would be used to do this:
ember-modifier-manager-polyfill > 2.12 . < 3.8
ember-modifier > 3.4 (Makes creating custom modifiers easier)

Optional
ember-native-class-polyfill (optional) > 3.4 < 3.6
ember-decorators-polyfill (optional) > 2.18 < 3.10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions