1.0.1 • Published 4 years ago

domore-react-components v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

#Domore react components

React components created by domore for sharepoint framework applications

#Installation

npm i domore-react-components

#Demos

###ConfigWebpart Component

This component presents a screen to inform the user of the need to fill in the properties of the webpart. Your button can receive an action that opens the properties, for that it is enough to pass the function that opens the panel.

Include the Component:

import React from 'react';
import{ IPropertyPaneAccessor } from '@microsoft/sp-webpart-base';

import { ConfigWebpart } from 'domore-react-components'

export interface props{
    propertyPane:IPropertyPaneAccessor;
}


class Component extends React.Component<props,{}> {
    
  public render() {
    return (<ConfigWebpart 
                action={()=>{this.props.propertyPane.open();}}
                icon={"Page"} 
                title={"WebPart Title"} 
                description={"WebPart Description"} 
                buttonText={"Configure the webpart"}>
                </ConfigWebpart>
            );
  }
}