Skip to main content

Notifications

Modal Dialog with Configurable Buttons

SpoTechGeek Profile Picture Posted 20 May 2024 by SpoTechGeek 32

DialogBoxComponent.png

Note: The latest update addresses the "One or more component behavior properties, event or action, have a mismatched return type" error.

 

Responsive Design:

  • Buttons adjust their width automatically based on number displayed or hidden.
  • Button font adjusts according to button visibility and width/height.
  • Message text conforms to dialog box display area.

Configurable Options:

  • Dialog box:
    • Message (with variables)
    • Fill color
  • Buttons:
    • Visibility
    • OnSelect
    • Text per button
    • Fill color
    • Font color

Get latest version on GitHub.

Categories:

Samples

Comments

  • SpoTechGeek Profile Picture SpoTechGeek 32
    Posted 20 May 2024 at 16:26:54
    Modal Dialog with Configurable Buttons

    @Craigyh 

    I've updated the component. It should no longer generate the error.

  • SpoTechGeek Profile Picture SpoTechGeek 32
    Posted 20 May 2024 at 15:29:02
    Modal Dialog with Configurable Buttons

    Hi @Craigyh 

    Unfortunately, Microsoft made some unannounced changes and this error is appearing everywhere.

    You might find post useful.

    It's only a workaround. Your other option is to modify the component on your end and change some of the properties.

  • Craigyh Profile Picture Craigyh 5
    Posted 18 May 2024 at 08:42:32
    Modal Dialog with Configurable Buttons

    Hi,

    When I tried to import the .msapp file, I got an import error "There was a problem importing Modal Dialog Component. One or more component behaviour properties, Event or Action, have a mismatched return type"