Skip to content

SaifurRahmanMohsin/Text-With-Button-Widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text With Button Widget for OctoberCMS

Introduction

A simple widget that allows a button to exist inside the text field and developers can define a handler to work when the button is clicked.

Screenshot of widget

Usage

Mark the field type as text-with-button and then specify the handler.

    type: text-with-button
    buttonText: Clear
    buttonHandler: onApiKeyClear

And obviously you need to define the handler in the controller where this is going to be used.

public function onApiKeyClear()
{
    ... call the settings clear or whatever logic here ...
}

About

Text With Button Widget for OctoberCMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published