master @ 13 LINES
[ HISTORY ] [ UP ]
┌─ TS ───────────────────────────────────────────────────────────────────────┐
│ import { len } from "../../lib/ascii"; │
│ │
│ export interface Props { │
│ label: string; │
│ name: string; │
│ value: string; │
│ checked?: boolean; │
│ disabled?: boolean; │
│ } │
│ │
│ // "(-) " + label │
│ export const radioWidth = (label: string) => len(label) + 4; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ TS ─────────────────────────────────┐
│ import { len } from "../../lib/ascii"; │
│ │
│ export interface Props { │
│ label: string; │
│ name: string; │
│ value: string; │
│ checked?: boolean; │
│ disabled?: boolean; │
│ } │
│ │
│ // "(-) " + label │
│ export const radioWidth = (label: string) => │
│ len(label) + 4; │
└──────────────────────────────────────────────┘
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET