KnowledgePanelElementExtension extension
Extension on KnowledgePanelElement.
Methods
-
getElementWidget(
{required Product product, required bool isInitiallyExpanded, required bool isClickable, required bool isTextSelectable, required int position, required bool simplified}) → Widget? -
Available on KnowledgePanelElement, provided by the KnowledgePanelElementExtension extension
Returns the widget that displays the KP element, or rarely null. -
getPanelIds(
) → List< String> -
Available on KnowledgePanelElement, provided by the KnowledgePanelElementExtension extension
Returns the ids of the panels this element directly refers to. -
hasSomethingToDisplay(
Product product) → bool -
Available on KnowledgePanelElement, provided by the KnowledgePanelElementExtension extension
Returns true if the element has something to display. -
lookForSquarePanels(
Product product) → List< KnowledgePanel> -
Available on KnowledgePanelElement, provided by the KnowledgePanelElementExtension extension