| Package | Description |
|---|---|
| org.dominokit.domino.ui.cards |
| Modifier and Type | Method and Description |
|---|---|
Card |
Card.addCollapseListener(Collapsible.HideCompletedHandler listener)
Adds listener to be called when the body gets collapsed.
|
Card |
Card.addExpandListener(Collapsible.ShowCompletedHandler listener)
Adds listener to be called when the body gets expanded.
|
Card |
Card.addHeaderAction(BaseIcon<?> icon,
elemental2.dom.EventListener eventListener)
Adds new header action to card header passing the
icon and the eventListener. |
Card |
Card.addHeaderAction(HeaderAction headerAction)
Adds new
HeaderAction |
Card |
Card.appendChild(org.jboss.elemento.IsElement<?> element) |
Card |
Card.appendChild(elemental2.dom.Node content)
Adds element to the body of the card
|
Card |
Card.appendDescriptionChild(org.jboss.elemento.IsElement<?> element)
Same as
appendDescriptionChild(Node) but takes IsElement |
Card |
Card.appendDescriptionChild(elemental2.dom.Node node)
Adds new element to the description element inside the header
|
Card |
Card.clearBody()
Clears the body element
|
Card |
Card.collapse()
Hide the body
|
static Card |
Card.create()
Creates new card instance with hiding the header
|
static Card |
Card.create(String title)
Creates new card instance with
title. |
static Card |
Card.create(String title,
String description)
Creates new card instance with
title and description |
static Card |
Card.createProfile(String name,
String info)
Profile is a special case of a card which has
margin-bottom to 0px and @link
Color#THEME} as a background |
Card |
Card.expand()
Show the body
|
Card |
Card.fitContent()
Removes spaces inside the card and fit the body to its content, check
CardStyles.FIT_CONTENT |
Card |
Card.hideHeader()
Hide the header
|
Card |
Card.removeCollapseListener(Collapsible.HideCompletedHandler listener)
Removes collapse listener.
|
Card |
Card.removeExpandListener(Collapsible.ShowCompletedHandler listener)
Removes expand listener.
|
Card |
Card.removeHeaderLogo()
Removes the card header logo and hides its container
|
Card |
Card.setBackground(Color background) |
Card |
Card.setBodyBackground(Color bodyBackground)
Sets the background
Color of the body |
Card |
Card.setBodyCollapseStrategy(CollapseStrategy strategy)
Set the card body collapse strategy
|
Card |
Card.setBodyPadding(String padding)
Sets the padding of the body, the
padding value will be the same as CSS defines it. |
Card |
Card.setBodyPaddingBottom(String padding)
Sets the bottom padding of the body
|
Card |
Card.setBodyPaddingLeft(String padding)
Sets the left padding of the body
|
Card |
Card.setBodyPaddingRight(String padding)
Sets the right padding of the body
|
Card |
Card.setBodyPaddingTop(String padding)
Sets the top padding of the body
|
Card |
Card.setCollapsible()
Enables the ability to hide/show the body by adding header action to the card.
|
Card |
Card.setDescription(String descriptionText)
Sets the description of the card
|
Card |
Card.setHeaderBackground(Color headerBackground)
Sets the background
Color of the header |
Card |
Card.setHeaderLogo(org.jboss.elemento.IsElement<?> element)
Same as
setHeaderLogo(Node) but accepts IsElement |
Card |
Card.setHeaderLogo(elemental2.dom.Node node)
Sets the header logo, this will removes the previous logo if set.
|
Card |
Card.setHeaderVisible(boolean headerVisible)
Sets the header visibility
|
Card |
Card.setTitle(String titleText)
Sets the title of the card
|
Card |
Card.showHeader()
Show the header
|
Card |
Card.toggle()
Change the visibility of the body based on its current state; expand if collapsed or collapse
if expanded
|
Card |
Card.unFitContent()
Sets a default padding to the body of the card
|
Copyright © 2019–2022 Dominokit. All rights reserved.