Revision history [back]

click to hide/show revision 1
initial version

asked 2017-12-13 22:13:52 +0800

Rish gravatar image Rish

Tooltips for the buttons in paging in grid

Hello, folks!

It is possible to add tooltips to the buttons in paging in grid?

Thanks.

Tooltips for the buttons in paging in grid

Hello, folks!

It is possible to add tooltips to the buttons in paging in grid?

Thanks.In fact, I managed to add them at the moment, the page in loaded. But they dissapear after navigating by paging.

public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    // ...
    tunePagingTooltips()
}

def tunePagingTooltips() {
    def script = "setTimeout(function(){\$(\".z-paging-prev\").attr(\"title\",\"Previous page\");\n" +
            "      \$(\".z-paging-next\").attr(\"title\",\"Next page\");\n" +
            "      \$(\".z-paging-first\").attr(\"title\",\"First page\");\n" +
            "      \$(\".z-paging-last\").attr(\"title\",\"Last page\");\n" +
            "      msgzk.GOTO_ERROR_FIELD=\"Close\" \n" +
            "      \$(\".z-paging-inp\").attr(\"title\",\"Enter page number\");}, 100);"
    Clients.evalJavaScript(script)
}

Thanks in advance.

Tooltips for the buttons in paging in grid

Hello, folks!

It is possible to add tooltips to the buttons in paging in grid?

In fact, I I've managed to add them at the moment, the page in loaded. But they dissapear disapear after navigating by paging.

public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    // ...
    tunePagingTooltips()
}

def tunePagingTooltips() {
    def script = "setTimeout(function(){\$(\".z-paging-prev\").attr(\"title\",\"Previous page\");\n" +
            "      \$(\".z-paging-next\").attr(\"title\",\"Next page\");\n" +
            "      \$(\".z-paging-first\").attr(\"title\",\"First page\");\n" +
            "      \$(\".z-paging-last\").attr(\"title\",\"Last page\");\n" +
            "      msgzk.GOTO_ERROR_FIELD=\"Close\" \n" +
            "      \$(\".z-paging-inp\").attr(\"title\",\"Enter page number\");}, 100);"
    Clients.evalJavaScript(script)
}

Thanks in advance.

Tooltips for the buttons in paging in grid

Hello, folks!

It is possible to add tooltips to the buttons in paging in grid?

In fact, I've managed to add them at the moment, moment the page in loaded. But they disapear after navigating by paging.paging. That is an auto paging with mold "paging" in grid. Should I place <paging> in zul and rewrite paging work to add tooltips on onPaging event?

public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    // ...
    tunePagingTooltips()
}

def tunePagingTooltips() {
    def script = "setTimeout(function(){\$(\".z-paging-prev\").attr(\"title\",\"Previous page\");\n" +
            "      \$(\".z-paging-next\").attr(\"title\",\"Next page\");\n" +
            "      \$(\".z-paging-first\").attr(\"title\",\"First page\");\n" +
            "      \$(\".z-paging-last\").attr(\"title\",\"Last page\");\n" +
            "      msgzk.GOTO_ERROR_FIELD=\"Close\" \n" +
            "      \$(\".z-paging-inp\").attr(\"title\",\"Enter page number\");}, 100);"
    Clients.evalJavaScript(script)
}

Thanks in advance.

Tooltips for the buttons in paging in grid

Hello, folks!

It is possible to add tooltips to the buttons in paging in grid?

In fact, I've managed to add them at the moment the page in loaded. But they disapear after navigating by paging. That is an auto paging with mold "paging" in grid. Should I place <paging> in zul and rewrite paging work to add tooltips on onPaging event?

I also don't want to show paging when elements fit in one page.

public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    // ...
    tunePagingTooltips()
}

def tunePagingTooltips() {
    def script = "setTimeout(function(){\$(\".z-paging-prev\").attr(\"title\",\"Previous page\");\n" +
            "      \$(\".z-paging-next\").attr(\"title\",\"Next page\");\n" +
            "      \$(\".z-paging-first\").attr(\"title\",\"First page\");\n" +
            "      \$(\".z-paging-last\").attr(\"title\",\"Last page\");\n" +
            "      msgzk.GOTO_ERROR_FIELD=\"Close\" \n" +
            "      \$(\".z-paging-inp\").attr(\"title\",\"Enter page number\");}, 100);"
    Clients.evalJavaScript(script)
}

Thanks in advance.

Tooltips for the buttons in paging in grid

Hello, folks!

It is possible to add tooltips to the buttons in paging in grid?

In fact, I've managed to add them at the moment the page in loaded. But they disapear after navigating by paging. That is an auto paging with mold "paging" in grid. Should I place <paging> in zul and rewrite paging work to add tooltips on onPaging event?

I also don't want to show paging when elements fit in one page.

public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    // ...
    tunePagingTooltips()
}

def tunePagingTooltips() {
    def script = "setTimeout(function(){\$(\".z-paging-prev\").attr(\"title\",\"Previous page\");\n" +
            "      \$(\".z-paging-next\").attr(\"title\",\"Next page\");\n" +
            "      \$(\".z-paging-first\").attr(\"title\",\"First page\");\n" +
            "      \$(\".z-paging-last\").attr(\"title\",\"Last page\");\n" +
            "      msgzk.GOTO_ERROR_FIELD=\"Close\" \n" +
            "      \$(\".z-paging-inp\").attr(\"title\",\"Enter page number\");}, 100);"
    Clients.evalJavaScript(script)
}

Thanks in advance.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More