How to use the @amalto/helpers.downloadDataFile function in @amalto/helpers

To help you get started, we’ve selected a few @amalto/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 / key-value-editor / typescript / index.tsx View on Github external
private downloadFile = ( event: any ) => {
        const key: string = event.currentTarget.getAttribute( 'data-key' )
        downloadDataFile( this.props.keyValues[key].contentBytes, this.props.keyValues[key].contentType, key )
    }
github amalto / platform6-ui-components / components / key-value-editor / index.tsx View on Github external
private downloadFile = ( key: string ) => {
        downloadDataFile( this.props.keyValues[key].contentBytes, this.props.keyValues[key].contentType, key )
    }
github amalto / platform6-ui-components / components / tree / index.tsx View on Github external
private downloadFile = ( event: any ) => {
        if ( this.state.selectedNode ) {
            const keyValues: KeyValDef = this.state.selectedNode.data.propertiesMap
            const key: string = event.currentTarget.getAttribute( 'data-key' )
            downloadDataFile( keyValues[key].contentBytes, keyValues[key].contentType, key )
        }
    }