Skip to content

Releases: microsoft/powerbi-visuals-utils-formattingmodel

v6.0.0

09 Oct 12:52
a78f75a

Choose a tag to compare

  1. Added support for creating custom Formatting groups
  2. Replaced topLevelToggle with topLevelSlice attribute to card and group interfaces.
  3. Added extra (optional) visible slice/card/group attribute for easier show/hide in a dynamic way
  4. Interface Card is removed. Use CompositeCard or SimpleCard instead.
    Composite card is designed to handle multiple Groups inside.
  5. Added extra (optional) visible slice/card/group attribute for easier show/hide in a dynamic way

Example:

class GroupSettings extends formattingSettings.Group { // Formatting Group
    fontSize = new formattingSettings.NumUpDown({
        name: "fontSize",
        displayName: "Text Size",
        value: 10
    });
    name: string = "font";
    displayName: string = "Font Group";
    slices: formattingSettings.Slice[] = [this.fontSize];
    visible: boolean = true // `true` by default. Group will be hidden if `visible == false`
}

class FormattingCard extends formattingSettings.SimpleCard { // Simple card example
     show = new formattingSettings.ToggleSwitch({
         name: "show",
         displayNameKey: "Visual_Show",
         value: true,
         visible: true // `true` by default. Slice will be hidden if `visible == false`
         // topLevelToggle: true - Old version of topLevelSlice
     });

    topLevelSlice: formattingSettings.SimpleSlice = this.show // New version of topLevelToggle
    name: string = "formatting";
    displayName: string = "Formatting Settings";
    groupsSettings = new GroupSettings(Object());
    groups: formattingSettings.Group[] = [this.groupsSettings];
    visible: boolean = true // `true` by default. Card will be hidden if `visible == false`
}
  1. populateFormattingSettingsModel now should receive only one dataView as second argument.
   formattingSettingsService.populateFormattingSettingsModel(Settings, options.dataViews[0])

v5.0.1

05 Jul 11:20
44f85f8

Choose a tag to compare

Merge pull request #13 from microsoft/fix_composite_slice_localization

version bump for localization fix

v5.0.0

13 Oct 10:28
e14c2da

Choose a tag to compare

Added missing build script (#6)

* Removed running tests from automated release (#5) (#2)

* Removed running tests from automated release (#5) (#3)

* added missing build script