Skip to content

Commit

Permalink
added number converter
Browse files Browse the repository at this point in the history
  • Loading branch information
eljefe223 committed May 8, 2020
1 parent eac4e45 commit 174d4b6
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import { attr, booleanConverter, FASTElement, observable } from "@microsoft/fast-element";
import {
attr,
FASTElement,
nullableNumberConverter,
observable,
} from "@microsoft/fast-element";

export class AccordionItem extends FASTElement {
@attr({ attribute: "heading-level", mode: "fromView" })
@attr({
attribute: "heading-level",
mode: "fromView",
converter: nullableNumberConverter,
})
public headinglevel: 1 | 2 | 3 | 4 | 5 | 6 = 2;

@attr({ mode: "boolean" })
Expand Down

0 comments on commit 174d4b6

Please sign in to comment.