kolibri-design-system icon indicating copy to clipboard operation
kolibri-design-system copied to clipboard

Hints: Method and public properties

Open rtibbles opened this issue 4 years ago • 0 comments

Product

Kolibri

Desired behavior

Adding the following public method: takeHint which, if defined on the wrapped renderer component, will cause a hint to be taken

Adding the following public properties: availableHints - the number of hints available to be given - will change as takeHint is used.

totalHints - the total number of hints available.

Current behavior

These have to be directly accessed from the child component.

(Optional) The Value Add

Define a public API and avoid having to reach into the internals of components

(Optional) Possible Tradeoffs

API bloat for KContentRenderer - potentially too specific to Perseus renderer.

rtibbles avatar Oct 26 '21 21:10 rtibbles