@dunite/au-fluent-ui
Version:
An Aurelia plugin project that wraps Microsoft Fluent UI React components.
30 lines (22 loc) • 913 B
text/typescript
import { TaskQueue, customElement, inject } from 'aurelia-framework';
import { DialogFooter, IDialogFooterProps } from '@fluentui/react/lib/Dialog';
import { AuReactWrapper, addPropertiesState } from '@dunite/au-react-wrapper';
// IMPORTANT
// any function defined here will be called with _this as first parameter
// following parameters are from the event
// _this refers to the Aurelia class with all properties added
let reactprops: IDialogFooterProps = <IDialogFooterProps>{};
reactprops.className = <any>{};
(Element, TaskQueue)
('du-dialog-footer')
export class DuDialogFooter extends AuReactWrapper {
constructor(element, protected tq: TaskQueue)
{
super(element, tq);
}
hidden: boolean = false;
attached() {
this.renderReact(DialogFooter, this.createState(reactprops));
}
}
addPropertiesState(DuDialogFooter, reactprops);