9. Advanced AJAX
Renameable Labels
<< Previous   |   Back to Main   |   Porting Code to the Client Side >>

View Source
will open in a new window
Making Renameable Labels
With the use of QLabel and QTextBox controls that can show, hide and change CssClass names depending on what action we must execute, we use QAjaxActions and various events to create a list of "renameable labels", where the interaction is similar to how files and folders can be selected and then renamed in the Finder or in Windows Explorer.

To rename any of the labels below, click on it to highlight it. And then click it again to rename it. If you click elsewhere or hit return, the change will be saved. If you hit escape, the change will be cancelled.

This is a Test for Item #1

This is a Test for Item #2

This is a Test for Item #3

This is a Test for Item #4

This is a Test for Item #5

This is a Test for Item #6

This is a Test for Item #7

This is a Test for Item #8

This is a Test for Item #9

This is a Test for Item #10