1.8.1 • Published 9 months ago

@finastra/list v1.8.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

List

fds-list extends Material Web mwc-list-base, the package export three list items that can be used inside the fds-list:

  • fds-list-item
  • fds-check-list-item
  • fds-radio-list-item

See it on NPM! How big is this package in your project? Storybook

Usage

APIs

See Material List for mor details.

Import

npm i @finastra/list
import '@finastra/list';
...
<fds-list>
  <fds-list-item>Item 1</fds-list-item>
  <fds-list-item>Item 2</fds-list-item>
</fds-list>

API

Properties

PropertyModifiersTypeDefault
activatedboolean
disabledboolean
graphicGraphicType
groupstring \| null
hasMetaboolean
leftboolean
multipleGraphicsboolean
noninteractiveboolean
ripplePromise<Ripple \| null>
selectedboolean
stylesCSSResult[]"styles","controlStyle"
tabindexnumber
textreadonlystring
twolineboolean
valuestring

Events

EventType
list-item-rendered
request-selectedRequestSelectedDetail

fds-list-item

Properties

PropertyModifiersTypeDefault
activatedboolean
disabledboolean
graphicGraphicType
groupstring \| null
hasMetaboolean
multipleGraphicsboolean
noninteractiveboolean
ripplePromise<Ripple \| null>
selectedboolean
stylesCSSResult[]"styles"
tabindexnumber
textreadonlystring
twolineboolean
valuestring

Events

EventType
list-item-rendered
request-selectedRequestSelectedDetail

fds-list

Properties

PropertyAttributeModifiersTypeDefaultDescription
activatableactivatablebooleanfalseSets activated attribute on selected items which provides a focus-persistent highlight.
debouncedLayout(updateItems?: boolean \| undefined) => void \| undefined
emptyMessagestring \| undefined
indexreadonlyMWCListIndex
innerAriaLabelstring \| null
innerRolestring \| null
itemRolesstring \| null
itemsreadonlyListItemBase[]
itemsReadyPromise<never[]>
layout(updateItems?: boolean \| undefined) => void
multimultibooleanfalseWhen true, enables selection of multiple items.
noninteractivenoninteractivebooleanfalseDisables focus and pointer events for the list item.
rootTabbableboolean
selectedreadonlyListItemBase \| ListItemBase[] \| null
stylesCSSResult[]"styles"
wrapFocusboolean

Methods

MethodType
blur(): void
click(): void
focus(): void
focusItemAtIndex(index: number): void
getFocusedItemIndex(): number
layout(updateItems?: boolean \| undefined): void
renderPlaceholder(): TemplateResult<1> \| null
select(index: MWCListIndex): void
toggle(index: number, force?: boolean \| undefined): void

Events

EventType
actionActionDetail
items-updated
selectedSelectedDetail

Slots

NameDescription
defaultContent to display in the lists internal element.

CSS Custom Properties

PropertyTypeDefaultDescription
--fds-primarycolor"#694ED6"Color of the select item.
--fds-secondarycolor"#C137A2"Color of the controls.

fds-radio-list-item

Properties

PropertyModifiersTypeDefault
activatedboolean
disabledboolean
graphicGraphicType
groupstring \| null
hasMetaboolean
leftboolean
multipleGraphicsboolean
noninteractiveboolean
ripplePromise<Ripple \| null>
selectedboolean
stylesCSSResult[]"styles","controlStyle"
tabindexnumber
textreadonlystring
twolineboolean
valuestring

Events

EventType
list-item-rendered
request-selectedRequestSelectedDetail
1.8.1

9 months ago

1.8.0

11 months ago

1.7.0

1 year ago

1.6.0

1 year ago

1.4.2

1 year ago

1.5.0

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.2.8

1 year ago

1.2.7

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.1.3

1 year ago

1.0.4

2 years ago

1.2.1

1 year ago

1.1.2

1 year ago

1.2.9

1 year ago

1.2.12

1 year ago

1.2.13

1 year ago

1.2.10

1 year ago

1.2.11

1 year ago

1.2.16

1 year ago

1.2.17

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.42

2 years ago

0.0.44

2 years ago

1.0.3

2 years ago

0.0.41

2 years ago

0.0.40

2 years ago

0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago