Add SPFx theme & context property to the AdaptiveCardHost control #1145
Labels
status:fixed-next-drop
Issue will be fixed in upcoming release.
type:enhancement
New feature or enhancement of existing capability
Milestone
Category
[X] Enhancement
[-] Bug
[-] Question
Version
Please specify what version of the library you are using: [3.6.0]
Expected
Speaking with @joaojmendes about the possible evolutions of the control, and specifically in the creation of a library of additional elements (using MGT for example), it is necessary to pass the "Theme" object and values that come from the "Context" of SPFx, so to be used with the Adaptive Card "templating" syntax and therefore to be passed to the new elements.
The idea is to directly inject these values into the "Data" object which is then used to do the "binding" in the rendering phase.
An example could be to pass the colors of the theme applied to a template to discriminate which image to load (understand if the theme is dark or not), etc., etc.
Or, thanks to the context of SPFx, you can have information on the site, current user, etc., etc. and use that information as properties in the "data" object
The text was updated successfully, but these errors were encountered: