Skip to content
🚀 Rapid Application Development with the App Builder

customActionsTop

The customActionsTop hook allows developers to add custom actions to the table actions shown at the top left corner.

Parameters

ParameterTypeDescription
tablereferenceTable instance and state.

Structure parameter table

js
table: {
	instance: *ref_to_table_api,
	state: *ref_to_table_store,
	requery: *ref_to_requery_table_function,
}

Return Value

TypeDescription
stringAn HTML string, typically created using a template literal.
HTMLElementA DOM element node created with vanilla JavaScript.
jQueryA jQuery object wrapping the new element.

✨ Example of a customActionTop Hook

This example returns a template literal.

js
((table) => {
	return `<div>
		<button onclick="alert('My custom action')">My Custom Action</button>
	</div>`
})

✨ Example of a Global Function Call

js
((table) => {
	return myCustomAction()
})

Other Examples