Home Reference Source Repository

References

material

summary
public

File upload button.

public

A material-ui Table with sorting and filtering.

public

Material-ui SelectField extended with an info field.

public

Material-ui TextField extended with an info field.

public

C Label

Default styles:

{
  padding: `${context.muiTheme.baseTheme.spacing.desktopGutter / 2}px ${context.muiTheme.baseTheme.spacing.desktopGutter}px`
  background context.muiTheme.baseTheme.palette.accent3Color,
  color: 'white',
  textTransform: 'uppercase'
}
public

Default styles:

{
  padding: context.muiTheme.baseTheme.spacing.desktopGutter
}
public

AutoComplete search for person.

util

summary
public

F readFileToString(file: File): string

Get the content of a File object.

public

F respToJson(response: Object): Objcet

Convert fetch result to json

public

F shallowEqual(objA: *, objB: *): boolean

util/sp

summary
public

Adds an executeQuery function to the SP ClientContext that calls the executeQueryAsync function and returns a promise.

public

Deletes an item from a list.

public

F deleteListItemFile(list: string, id: string, filename: string): Promise

Delete file from list item attachments.

public

Get the currently logged in user.

public

F getItem(list: string, id: string, options: Object, attachments: boolean): Promise<Object>

Fetches an item by id from list.

public

F getList(list: string, options: Object): Promise<Object[]>

Fetches a list.

public
public

F saveItem(list: string, item: Object, assigner: function(sp_item: Object)): Promise<Object>

Save or update an item.

public

F searchPerson(searchText: string, options: Object): Promise<Object[]>

Search for persons in SP using clientPeoplePickerSearchUser.

public

F uploadFile(file: File, filename: string): Promise

Upload file to project Documents

public

F uploadFiles(files: Object[]): Promise

Upload list for files to project Documents

public

F uploadListItemFile(list: string, id: string, file: File): Promise

Upload file as attachment to a list item.

public

F uploadListItemFiles(list: string, id: string, files: Object[]): Promise

Upload list of files as attachment to a list item.

Directories