Class Card
- All Implemented Interfaces:
ElementAttributeMethods<HTMLDivElement, Card>, ElementClassListMethods<HTMLDivElement, Card>, ElementConsumerMethods<HTMLDivElement, Card>, ElementContainerMethods<HTMLDivElement, Card>, ElementEventMethods<HTMLDivElement, Card>, ElementIdMethods<HTMLDivElement, Card>, ElementQueryMethods<HTMLDivElement>, HTMLElementAttributeMethods<HTMLDivElement, Card>, HTMLElementDataMethods<HTMLDivElement, Card>, HTMLElementStyleMethods<HTMLDivElement, Card>, HTMLElementVisibilityMethods<HTMLDivElement, Card>, IsElement<HTMLDivElement>, TypedBuilder<HTMLDivElement, Card>, Component, Expandable<HTMLDivElement, Card>, Modifiers.Compact<HTMLDivElement, Card>, Modifiers.Disabled<HTMLDivElement, Card>, Modifiers.FullHeight<HTMLDivElement, Card>, Modifiers.Plain<HTMLDivElement, Card>
public class Card
extends BaseComponent<HTMLDivElement, Card>
implements Modifiers.Compact<HTMLDivElement, Card>, Modifiers.Disabled<HTMLDivElement, Card>, Expandable<HTMLDivElement, Card>, Modifiers.FullHeight<HTMLDivElement, Card>, Modifiers.Plain<HTMLDivElement, Card>
A card is a square or rectangular container that can contain any kind of content. Cards symbolize units of information, and
each one acts as an entry point for users to access more details. For example, in dashboards and catalog views, cards
function as a preview of a detailed page. Cards may also be used in data displays like card views, or for positioning content
on a page.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(CardExpandableContent expandableContent) add(CardHeader header) addExpandableContent(CardExpandableContent expandableContent) addFooter(CardFooter footer) addHeader(CardHeader header) static Cardcard()Same as clickable(null)Same as clickable(String, false)clickable(ComponentHandler<Card> onClick) voidcollapse(boolean fireEvent) disabled(boolean disabled) Adds/removes modifier(disabled)voidexpand(boolean fireEvent) Same as expandable(null, false)expandable(boolean toggleRightAligned) expandable(ToggleHandler<Card> toggleHandler) Same as expandable(toggleHandler, false)expandable(ToggleHandler<Card> toggleHandler, boolean toggleRightAligned) flat()Same as flat(true)flat(boolean flat) Adds/removes modifier(flat)large()Same as large(true)large(boolean large) Adds/removes modifier(large)rounded()Same as rounded(true)rounded(boolean rounded) Adds/removes modifier(rounded)voidselect()Same as select(true, true)voidselect(boolean selected) Same as select(selected, true)voidselect(boolean selected, boolean fireEvent) Same as selectable(multi, null)selectable(SelectionMode selectionMode) Same as selectable(selectionMode, null)selectable(SelectionMode selectionMode, SelectHandler<Card> selectHandler) selectable(SelectHandler<Card> selectHandler) Same as selectable(multi, onSelect)booleanselected()that()Methods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Compact
compact, compactMethods inherited from interface Modifiers.Disabled
disabled, isDisabledMethods inherited from interface Modifiers.FullHeight
fullHeight, fullHeightMethods inherited from interface Modifiers.Plain
plain, plain
-
Method Details
-
card
-
addHeader
-
add
-
addTitle
-
addBody
-
addExpandableContent
-
add
-
flat
Same as flat(true) -
flat
Adds/removes modifier(flat) -
rounded
Same as rounded(true) -
rounded
Adds/removes modifier(rounded) -
large
Same as large(true) -
large
Adds/removes modifier(large) -
selectable
Same as selectable(multi, null) -
selectable
Same as selectable(multi, onSelect) -
selectable
Same as selectable(selectionMode, null) -
selectable
-
clickable
Same as clickable(null) -
clickable
-
clickable
Same as clickable(String, false) -
clickable
-
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLDivElement, Card>
-
expandable
Same as expandable(null, false) -
expandable
-
expandable
Same as expandable(toggleHandler, false) -
expandable
-
name
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement, Card>
-
ariaLabel
-
select
public void select()Same as select(true, true) -
select
public void select(boolean selected) Same as select(selected, true) -
select
public void select(boolean selected, boolean fireEvent) -
selected
public boolean selected() -
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLDivElement, Card>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLDivElement, Card>
-