Skip to content

Commit

Permalink
Add option to create determinate spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Grozdanov committed Sep 12, 2019
1 parent 92b0222 commit e28719d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ export class LoadingSpinnerBuilder extends UiNodeBuilder {
const id = this.getPropertyValue('resourceId', BigInt(0), properties);
const path = this.getPropertyValue('resourcePath', '', properties);
const height = this.getPropertyValue('height', 0, properties);
const determinate = this.getPropertyValue('determinate', false, properties);

const element = ui.UiLoadingSpinner.Create(prism, type, id, path, height);
const element = determinate
? ui.UiLoadingSpinner.CreateDeterminate(prism, height)
: ui.UiLoadingSpinner.Create(prism, type, id, path, height);

const unapplied = this.excludeProperties(properties, ['type', 'resourceId', 'resourcePath', 'height']);

Expand Down

0 comments on commit e28719d

Please sign in to comment.