SPFx ImagePicker written in react
npm install intraactive-framework-spfx-imagepicker``$ npm install intraactive-framework-spfx-imagepicker
``
``
import IAImagePicker from 'intraactive-framework-spfx-imagepicker'
``
inputFieldPlaceholderText="[YOUR_TEXT]"
uploadButtonLabel="[YOUR_TEXT]"
selectButtonLabel="[YOUR_TEXT]"
imageListTitle="[YOUR_LIST_TITLE]"
onChange={(url: string) => console.log(url)}
defaultImageUrl="[YOUR_TEXT]"
spService={[JSOM_SERVICE]}
/>
`
import * as React from 'react';
import { IDesignSettingsProps } from './IDesignSettingsProps';
import JSOMListService from 'intraactive-framework-jsomservice';
export interface IDesignSettingsState {
spService: JSOMListService;
}
export default class DesignSettings extends React.Component
constructor(props: IDesignSettingsProps) {
super(props);
this.state = {
spService: props.serviceScope.consume(JSOMListService.serviceKey)
};
}
public render(): React.ReactElement
return (
inputFieldPlaceholderText="Indsæt billedlink"
uploadButtonLabel="Upload"
selectButtonLabel="Select"
imageListTitle="Infoscreen Assets"
onChange={(url: string) => console.log(url)}
defaultImageUrl=""
spService={this.state.spService}
/>
);
}
}
``