Telerik UI for ASP.NET Core FloatingToolBar Overview
-
EXAMPLEVIEW SOURCE
- EDIT IN
Also available for:
CLIENT-SIDE API HTML HELPER APIThe FloatingToolBar component is part of Telerik UI for ASP.NET Core, a professional grade UI library with 120+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
Description
The Telerik UI for ASP.NET Core FloatingToolBar hosts a ToolBar in a floating container that supports alignment, anchoring, and optional pointer or keyboard dragging.
This example uses the FloatingToolBar as an inline text editor. Select text in the About me section to open the FloatingToolBar next to the selection. Use its ColorPicker to change the text color and its Bold, Italic, and Underline toggle buttons to format the selected text. The phrase "software developer who turns complex problems into simple, reliable applications" is selected and bold by default, so the toolbar is open when the demo loads. The toolbar reflects the formatting of the current selection and closes when the selection is cleared. Click the profile photo to open a second FloatingToolBar with Upload and Delete buttons.
The HtmlHelper and TagHelper examples declare both FloatingToolBars, the ColorPicker item template, and the buttons with ASP.NET Core syntax. Client-side code anchors the toolbars to the selection or the photo through the show and setAnchor methods and applies the formatting.