3.0.16 • Published 13 days ago

ember-cli-mdc-chips v3.0.16

Weekly downloads
225
License
Apache-2.0
Repository
-
Last release
13 days ago

ember-cli-mdc-chips

ember-cli addon for @material/chips.

Installation

ember install ember-cli-mdc-chips

Components

This package contains the following top-level components.

MdcChipSet

Description

Add a chip set (a list of chips) to the page.

Usage

The inline (and recommended) version:

<MdcChipSet @label={{label}} @chips={{chips}} />

or the block version:

<MdcChipSet @interaction={{this.interaction}} 
            @selection={{this.selection}}
            @removal={{this.removal}}
            @navigation={{this.navigation}}>
  <MdcChip @text='John' @leadingIcon="person" @trailingIcon="cancel" />
</MdcChipSet>

Attributes

ChipSet

  • @chips - an array of objects that defines the chips in the chip set
  • @label - a label that is covered to the class name mdc-chip-set--${label}
  • @interation - callback action for the chip interaction event
  • @selection - callback action for chip selection
  • @removal - callback action for chip removal
  • @navigation - callback action for chip navigation

Chip

  • @text - The text displayed in the chip.
  • @leadingIcon - The leading icon displayed on the chip.
  • @trailingIcon - The trailing icon displayed on the chip.

Using adapter keys to display data as chips

A feature of the inline MdcChipSet (and the other chip sets) is the ability to use adapter keys to display any array as a chip set without having to convert the items in the array to the expected attributes of a chip. The following are the adapter key attributes on MdcChipSet:

  • @idKey - The id property name (default is 'id')
  • @textKey - The text property name (default is 'text')
  • @leadingIconKey - The leading icon property name (default is 'leadingIcon')
  • @trailingIconKey - The trailing icon property name (default is 'trailingIcon')

Here is an example.

<MdcChipSet @label='names' @chips={{@model}} @textKey='name' />

MdcChoiceChipSet

Description

Add a choice (i.e., single select) chip set to the page.

Usage

<MdcChoiceChipSet @chips={{chips}} @choice={{this.choice}} @change={{this.change}} />

Attributes

MdcChoiceChipSet

  • @chips - an array of objects that defines the chips in the choice chip set
  • @choice - the initial choice; must be a chip from @chips
  • @change - callback action(chip) for when the choice changes; null if no choice

MdcFilterChipSet

Description

Add a filter (i.e., multi-select) chip set to the page.

Usage

<MdcFilterChipSet @chips={{this.chips}} @filtered={{this.filtered}} />

Attributes

MdcFilterChipSet

  • @chips - an array of objects that defines the chips in the filter chip set
  • @filtered - the array of filtered chips
3.0.16

13 days ago

3.0.4

25 days ago

3.0.8

25 days ago

3.0.5

25 days ago

3.0.0

3 months ago

2.13.2

3 months ago

2.13.0

1 year ago

2.11.6

2 years ago

2.11.4

2 years ago

2.11.5

2 years ago

2.9.9

2 years ago

2.9.11

2 years ago

2.8.7

2 years ago

3.0.0-alpha.21

2 years ago

3.0.0-alpha.20

2 years ago

2.7.1

2 years ago

2.7.3

2 years ago

2.6.0

2 years ago

2.5.2

2 years ago

2.5.3

2 years ago

3.0.0-alpha.0

2 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.10

3 years ago

2.3.4

3 years ago

2.3.0

3 years ago

2.1.1

3 years ago

2.0.19

3 years ago

3.0.0-alpha.18

3 years ago

3.0.0-alpha.17

3 years ago

3.0.0-alpha.19

3 years ago

3.0.0-alpha.14

3 years ago

3.0.0-alpha.16

3 years ago

3.0.0-alpha.15

3 years ago

3.0.0-alpha.13

3 years ago

3.0.0-y.0

3 years ago

3.0.0-alpha.12

3 years ago

3.0.0-alpha.11

3 years ago

3.0.0-alpha.9

3 years ago

3.0.0-alpha.10

3 years ago

3.0.0-alpha.8

3 years ago

3.0.0-alpha.7

3 years ago

3.0.0-alpha.6

3 years ago

3.0.0-alpha.3

3 years ago

3.0.0-alpha.2

3 years ago

3.0.0-alpha.5

3 years ago

3.0.0-alpha.4

3 years ago

2.0.12

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.0

3 years ago

2.0.0-octane.49

3 years ago

2.0.0-octane.48

3 years ago

2.0.0-octane.47

3 years ago

2.0.0-octane.46

3 years ago

2.0.0-octane.45

3 years ago

2.0.0-octane.43

3 years ago

2.0.0-octane.42

3 years ago

2.0.0-octane.41

3 years ago

2.0.0-octane.39

3 years ago

2.0.0-octane.40

3 years ago

2.0.0-octane.38

3 years ago

2.0.0-octane.37

3 years ago

2.0.0-octane.36

3 years ago

2.0.0-octane.35

3 years ago

2.0.0-octane.34

3 years ago

2.0.0-octane.33

3 years ago

2.0.0-octane.32

3 years ago

2.0.0-octane.31

3 years ago

2.0.0-octane.30

3 years ago

2.0.0-octane.28

3 years ago

2.0.0-octane.27

3 years ago

2.0.0-octane.24

3 years ago

2.0.0-octane.26

3 years ago

2.0.0-octane.25

3 years ago

2.0.0-octane.23

3 years ago

2.0.0-octane.22

3 years ago

2.0.0-octane.17

3 years ago

2.0.0-octane.19

3 years ago

2.0.0-octane.18

3 years ago

2.0.0-octane.21

3 years ago

1.1.9

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

2.0.0-octane.16

4 years ago

2.0.0-octane.15

4 years ago

2.0.0-octane.14

4 years ago

2.0.0-octane.13

4 years ago

2.0.0-octane.12

4 years ago

2.0.0-octane.11

4 years ago

2.0.0-octane.10

4 years ago

2.0.0-octane.9

4 years ago

2.0.0-octane.8

4 years ago

2.0.0-octane.6

4 years ago

2.0.0-octane.7

4 years ago

2.0.0-octane.5

4 years ago

2.0.0-octane.4

4 years ago

2.0.0-octane.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

2.0.0-octane.2

4 years ago

2.0.0-octane.1

4 years ago

2.0.0-octane.0

4 years ago

1.0.0

4 years ago

1.0.0-alpha.24

4 years ago

1.0.0-alpha.15

4 years ago

1.0.0-alpha.13

4 years ago

1.0.0-alpha.11

4 years ago

1.0.0-alpha.1

4 years ago

1.0.0-alpha.0

5 years ago

0.80.0

5 years ago

0.79.0

5 years ago

0.78.4

5 years ago

0.78.2

5 years ago

0.78.1

5 years ago

0.78.0

5 years ago

0.77.1-alpha.4

5 years ago

0.77.1-alpha.3

5 years ago

0.77.1-alpha.2

5 years ago

0.77.1-alpha.1

5 years ago

0.77.1-alpha.0

5 years ago

0.77.0-alpha.0

5 years ago

0.76.3

5 years ago

0.76.0

5 years ago

0.75.0

5 years ago

0.74.13

5 years ago

0.74.9

5 years ago

0.74.8

5 years ago

0.74.5

5 years ago

0.74.0

5 years ago

0.73.4

5 years ago

0.73.3

5 years ago

0.73.2

5 years ago

0.73.1

5 years ago

0.73.0

5 years ago

0.72.4

5 years ago

0.72.0

5 years ago

0.71.0

5 years ago

0.70.0

5 years ago

0.69.0

5 years ago

0.68.0

5 years ago

0.67.0

5 years ago

0.66.0

5 years ago

0.65.0

5 years ago

0.64.0

5 years ago

0.63.0

5 years ago

0.62.0

5 years ago

0.61.0

5 years ago

0.60.0

5 years ago

0.59.10

5 years ago

0.59.9

5 years ago

0.59.3

6 years ago

0.59.2

6 years ago

0.59.0

6 years ago

0.58.5

6 years ago

0.58.1

6 years ago

0.58.0

6 years ago

0.57.0

6 years ago

0.56.0

6 years ago

0.55.0

6 years ago

0.53.1

6 years ago

0.53.0

6 years ago

0.52.2

6 years ago

0.52.1

6 years ago

0.52.0

6 years ago

0.51.0

6 years ago

0.50.3

6 years ago

0.50.0

6 years ago

0.49.1

6 years ago

0.49.0

6 years ago

0.48.5

6 years ago

0.48.4

6 years ago

0.48.3

6 years ago

0.48.2

6 years ago

0.48.1

6 years ago

0.48.0

6 years ago