Sha256: c0148787066f73172cdf53c9c8af084b9f53532223e695b88c0781228ffe8bee
Contents?: true
Size: 493 Bytes
Versions: 7
Compression:
Stored size: 493 Bytes
Contents
import { htmlAttributes } from "../html/html-attributes"; export class OrderedList { attributes: Record<string, any>; children: any[]; constructor(attributes: Record<string, any> = {}) { this.children = []; this.attributes = attributes; } add(child: any): this { this.children.push(child); return this; } get renderWrapper(): string { return `<ol ${htmlAttributes(this.attributes)}>${this.children.map(child => child.renderWrapper).join("")}</ol>`; } }
Version data entries
7 entries across 7 versions & 1 rubygems