1.0.30 • Published 6 years ago

intraactive-framework-spfx-imagepicker v1.0.30

Weekly downloads
11
License
MIT
Repository
-
Last release
6 years ago

IntraActive Framework - SPFx Image Picker

IntraActive Framework's "Image Picker" package is a SPFx component used to upload/select images and to a SharePoint list and retur the URL.

Installation

`$ npm install intraactive-framework-spfx-imagepicker

Import

import IAImagePicker from 'intraactive-framework-spfx-imagepicker'

Usage

<IAImagePicker 
  label="[YOUR_TEXT]" 
  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]}
/>

Example

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<IDesignSettingsProps, IDesignSettingsState> {

  constructor(props: IDesignSettingsProps) {
    super(props);
    this.state = {
      spService: props.serviceScope.consume(JSOMListService.serviceKey)
    };
  }

  public render(): React.ReactElement<IDesignSettingsProps> {
    return (
      <IAImagePicker 
        label="Indsæt et logo" 
        inputFieldPlaceholderText="Indsæt billedlink" 
        uploadButtonLabel="Upload" 
        selectButtonLabel="Select" 
        imageListTitle="Infoscreen Assets" 
        onChange={(url: string) => console.log(url)} 
        defaultImageUrl="" 
        spService={this.state.spService}
      />
    );
  }
}
1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago