How to use @amalto/service-helpers - 3 common examples

To help you get started, we’ve selected a few @amalto/service-helpers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github amalto / platform6-ui-components / components / signature / index.tsx View on Github external
private generateBtnsBar = (): JSX.Element => {
        const { wordings, dirty, imgData } = this.state

        const leftBtn: ButtonsBar.BtnGroupsProps = {
            btns: [
                {
                    clickAction: this.clear,
                    cssClass: BUTTON_TYPE.FONT,
                    text: wordings.clear,
                    disabled: !imgData
                },
                {
                    clickAction: this.reset,
                    cssClass: BUTTON_TYPE.FONT,
                    text: wordings.reset
                }
            ],
            cssClass: 'btn-group-xs'
        }

        const rightBtn: ButtonsBar.BtnGroupsProps = {
            btns: [
                {
                    clickAction: this.save,
                    cssClass: BUTTON_TYPE.PRIMARY,
                    text: wordings.saveToProfile,
                    disabled: !dirty
                }
            ],
            cssClass: 'btn-group-xs',
github amalto / platform6-ui-components / components / signature / index.tsx View on Github external
private generateBtnsBar = (): JSX.Element => {
        const { wordings, dirty, imgData } = this.state

        const leftBtn: ButtonsBar.BtnGroupsProps = {
            btns: [
                {
                    clickAction: this.clear,
                    cssClass: BUTTON_TYPE.FONT,
                    text: wordings.clear,
                    disabled: !imgData
                },
                {
                    clickAction: this.reset,
                    cssClass: BUTTON_TYPE.FONT,
                    text: wordings.reset
                }
            ],
            cssClass: 'btn-group-xs'
        }

        const rightBtn: ButtonsBar.BtnGroupsProps = {
            btns: [
                {
                    clickAction: this.save,
github amalto / platform6-ui-components / components / signature / index.tsx View on Github external
disabled: !imgData
                },
                {
                    clickAction: this.reset,
                    cssClass: BUTTON_TYPE.FONT,
                    text: wordings.reset
                }
            ],
            cssClass: 'btn-group-xs'
        }

        const rightBtn: ButtonsBar.BtnGroupsProps = {
            btns: [
                {
                    clickAction: this.save,
                    cssClass: BUTTON_TYPE.PRIMARY,
                    text: wordings.saveToProfile,
                    disabled: !dirty
                }
            ],
            cssClass: 'btn-group-xs',
            style: { float: 'right' }
        }

        return 
    }

@amalto/service-helpers

Method to template some of the Platform 6 UI components.

MIT
Latest version published 5 months ago

Package Health Score

64 / 100
Full package analysis