//RadioButton creates a radio button for a form with the passed options
193581
func (f Form) RadioButton(opts tags.Options) *tags.Tag {
	return f.RadioButtonTag(opts)
}
556155
func drawButton(out *command.Buffer, bounds rect.Rect, state nstyle.WidgetStates, style *nstyle.Button) *nstyle.Item {
	var background *nstyle.Item
	if state&nstyle.WidgetStateHovered != 0 {
		background = &style.Hover
	} else if state&nstyle.WidgetStateActive != 0 {
		background = &style.Active
	} else {
		background = &style.Normal
	}

	if background.Type == nstyle.ItemImage {
		out.DrawImage(bounds, background.Data.Image)
	} else {
		out.FillRect(bounds, style.Rounding, style.BorderColor)
		out.FillRect(shrinkRect(bounds, style.Border), style.Rounding, background.Data.Color)
	}

	return background
}
995798
public function radioButton(RadioButton $radioButton)
    {
        $tag = new Tag('input');
        $tag->setAttribute('type', 'radio');

        if (!$radioButton->getId() && $radioButton->getLabel()) {
            $radioButton->setId('field-' . uniqid('radiobutton'));
        }

        if ($radioButton->isChecked()) {
            $tag->setAttribute('checked', 'checked');
        }

        $html = $this->parseTag($tag, $radioButton);

        if ($radioButton->getLabel()) {
            $label = new Tag('label', $radioButton->getLabel());
            $label->setAttribute('for', $radioButton->getId());
            $html .= $label->render();
        }

        return $html;
    }
579973
func runButtonPressCallbacks(xu *xgbutil.XUtil, ev xevent.ButtonPressEvent) {
	mods, button := DeduceButtonInfo(ev.State, ev.Detail)

	runMouseBindCallbacks(xu, ev, xevent.ButtonPress, ev.Event, mods, button)
}
68629
func NotificationClick(listener func(*vecty.Event)) *vecty.EventListener {
	return &vecty.EventListener{Name: "notificationclick", Listener: listener}
}
95791
func (f *Form) SelectByOptionLabel(name string, optionLabel ...string) error {
	s, ok := f.selects[name]
	if !ok {
		return errors.NewElementNotFound("No select element found with name '%s'.", name)
	}
	if len(optionLabel) > 1 && !s.multiple {
		return errors.NewElementNotFound("The select element with name '%s' is not a select miltiple.", name)
	}
	f.fields.Del(name)
	for _, l := range optionLabel {
		if _, ok := s.labels[l]; !ok {
			return errors.NewElementNotFound("The select element with name %q does not have an option with label %q", name, l)
		}
		f.fields.Add(name, s.labels.Get(l))
	}
	return nil
}
518869
func (ctx *Context) FormBool(key string, defaults ...bool) bool {
	return (*Forms)(ctx.req).MustBool(key, defaults...)
}
564088
func (f Form) CheckboxTag(opts tags.Options) *tags.Tag {
	return divWrapper(opts, func(o tags.Options) tags.Body {
		return f.Form.CheckboxTag(o)
	})
}
293867
func (btn *Button) SetClickButton(name, key string) {
	btn.Type = "click"
	btn.Name = name
	btn.Key = key
	btn.URL = ""
	btn.MediaID = ""
	btn.SubButtons = nil
}
949993
func (s *Bucket) OptionsObject(objectKey string, input *OptionsObjectInput) (*OptionsObjectOutput, error) {
	r, x, err := s.OptionsObjectRequest(objectKey, input)

	if err != nil {
		return x, err
	}

	err = r.Send()
	if err != nil {
		return nil, err
	}

	requestID := r.HTTPResponse.Header.Get(http.CanonicalHeaderKey("X-QS-Request-ID"))
	x.RequestID = &requestID

	return x, err
}
812080
func (f *Form) SetButtonTextColor(color tcell.Color) *Form {
	f.buttonTextColor = color
	return f
}
713258
func ResetButton(name string, text string) *Field {
	ret := FieldWithType(name, formcommon.RESET)
	ret.SetText(text)
	return ret
}
1238110
func DrawButton(x, y int, text string, active bool) {
	color := BUTTONTEXT
	if active {
		color = BUTTONFOCUS
	}
	Write(x, y, "<  ", color, BG)
	Write(x+3, y, text, color, BG)
	Write(x+3+len(text), y, "  >", color, BG)
}
200840
func (self radioGroupImpl) Val() string {
	var v string
	switch d := self.dom.(type) {
	case jqueryWrapper:
		v = d.jq.Filter(":checked").Val()
	case *testOpsImpl:
		v = d.Val()
	default:
		panic("unknown dom type")
	}
	if v == "undefined" {
		return ""
	}
	return v
}
380940
func NewFlagCheckOption(flag bool) Option {
	return &option{optionType: flagCheckOption, value: NewFlagCheckFilter(flag)}
}
419387
func logoutButton(r *messenger.Response) error {
	buttons := &[]messenger.StructuredMessageButton{
		{
			Type: "account_unlink",
		},
	}
	return r.ButtonTemplate("Unlink your account.", buttons, messenger.ResponseType)
}
530815
func NewOptionBlockObject(value string, text *TextBlockObject) *OptionBlockObject {
	return &OptionBlockObject{
		Text:  text,
		Value: value,
	}
}