Explorer

html-ui.events-type-link

description
A link of the event type filter on /events (bold if it is the current one)
type
Fn(value: String, label: String, current: String) -> @html.node
expression
fn(value$0, label$1, current$2) =>
  match @core.equal(left: $0, right: $2) {
    true =>
      @html.element(name: "b", attributes: [], children: [@html.text(text: $1)]),
    false =>
      @html.element(
        name: "a",
        attributes: [{name: "href", value: @core.string-concat(left: "/events?type=", right: $0)}],
        children: [@html.text(text: $1)]
      )
  }
visibility
public
html-ui.events-type-link (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: tORHTuw6aYfmOU15WxzuDCsDsuiZiAH1aUFGqP9hPds
content hash: ls4n2TL24DYQaokxP6JYlHbtWqlxZtxiOzHBsifczI0