Class CardSource

java.lang.Object
org.apache.juneau.console.CardSource

public final class CardSource extends Object
One authored card handed to a CardTypeHandler: its attributes, its raw body, and helpers to parse the body as JSON5 or capture it as a <template data-card>. Built by <@card> and by C3's PageSpec; tests build it directly.
Example:

CardSource s = CardSource.create("datatables", "releases") .title("Releases") .body("{dataUrl:'/rest/releases/data', columns:[{key:'version', label:'Version'}]}") .build(); JsonMap frag = CardTypeRegistry.standard().handler("datatables").toFragment(s);

Since:
10.0.0