@dunite/au-fluent-ui
Version:
An Aurelia plugin project that wraps Microsoft Fluent UI React components.
42 lines (32 loc) • 1.23 kB
text/typescript
import { customElement, TaskQueue, inject, bindable } from 'aurelia-framework';
import { TeachingBubble, ITeachingBubbleProps } from '@fluentui/react/lib/TeachingBubble';
import { AuReactWrapper, addPropertiesState, onlyAureliaBound } from '@dunite/au-react-wrapper';
let reactprops: ITeachingBubbleProps = <ITeachingBubbleProps>{};
reactprops.calloutProps = <any>{};
reactprops.hasCloseIcon = <any>{};
reactprops.hasCondensedHeadline = <any>{};
reactprops.hasSmallHeadline = <any>{};
reactprops.headline = <any>{};
reactprops.isWide = <any>{};
reactprops.onDismiss = <any>onlyAureliaBound;
reactprops.primaryButtonProps = <any>{};
reactprops.secondaryButtonProps = <any>{};
reactprops.targetElement = <any>{};
reactprops.illustrationImage = <any>{};
(Element, TaskQueue)
('du-teaching-bubble')
export class DuTeachingBubble extends AuReactWrapper implements ITeachingBubbleProps
{
constructor(element, protected tq: TaskQueue)
{
super(element, tq);
}
()
hidden: boolean;
isWide: boolean;
attached()
{
this.renderReact(TeachingBubble, this.createState(reactprops));
}
}
addPropertiesState(DuTeachingBubble, reactprops);