Triplet
View OriginalDynamic 3-field rows for key-value-effect data (e.g., Kubernetes taints). Each row has two text inputs and a dropdown. Powered by Alpine.js.
Goshtoso Component
Go + TemplKubernetes Taints
= :
Generic Priority Rows
= :
Usage Example
// Triplet (K8s Taints example)
@triplet.Triplet(triplet.Config{
ID: "taints",
Name: "taints",
Entries: []triplet.Entry{
{Key: "node-role.kubernetes.io/control-plane", Value: "true", Effect: "NoSchedule"},
},
EffectOptions: []triplet.EffectOption{
{Value: "NoSchedule", Display: "NoSchedule"},
{Value: "PreferNoSchedule", Display: "PreferNoSchedule"},
{Value: "NoExecute", Display: "NoExecute"},
},
KeyPlaceholder: "key",
ValuePlaceholder: "value",
AddLabel: "Add taint",
})