1. <tfoot id='1W4r1'></tfoot>

    <small id='1W4r1'></small><noframes id='1W4r1'>

      <bdo id='1W4r1'></bdo><ul id='1W4r1'></ul>
    <legend id='1W4r1'><style id='1W4r1'><dir id='1W4r1'><q id='1W4r1'></q></dir></style></legend>

    1. <i id='1W4r1'><tr id='1W4r1'><dt id='1W4r1'><q id='1W4r1'><span id='1W4r1'><b id='1W4r1'><form id='1W4r1'><ins id='1W4r1'></ins><ul id='1W4r1'></ul><sub id='1W4r1'></sub></form><legend id='1W4r1'></legend><bdo id='1W4r1'><pre id='1W4r1'><center id='1W4r1'></center></pre></bdo></b><th id='1W4r1'></th></span></q></dt></tr></i><div id='1W4r1'><tfoot id='1W4r1'></tfoot><dl id='1W4r1'><fieldset id='1W4r1'></fieldset></dl></div>
    2. 如何在 Joomla 组件(表)中添加可排序的列,ASC 和 DESC 都带有箭头

      How to add sortable columns in a Joomla component (table), both ASC and DESC with an arrow(如何在 Joomla 组件(表)中添加可排序的列,ASC 和 DESC 都带有箭头)
    3. <small id='Ovrut'></small><noframes id='Ovrut'>

        1. <legend id='Ovrut'><style id='Ovrut'><dir id='Ovrut'><q id='Ovrut'></q></dir></style></legend>

          <i id='Ovrut'><tr id='Ovrut'><dt id='Ovrut'><q id='Ovrut'><span id='Ovrut'><b id='Ovrut'><form id='Ovrut'><ins id='Ovrut'></ins><ul id='Ovrut'></ul><sub id='Ovrut'></sub></form><legend id='Ovrut'></legend><bdo id='Ovrut'><pre id='Ovrut'><center id='Ovrut'></center></pre></bdo></b><th id='Ovrut'></th></span></q></dt></tr></i><div id='Ovrut'><tfoot id='Ovrut'></tfoot><dl id='Ovrut'><fieldset id='Ovrut'></fieldset></dl></div>
        2. <tfoot id='Ovrut'></tfoot>

              <tbody id='Ovrut'></tbody>

                <bdo id='Ovrut'></bdo><ul id='Ovrut'></ul>

                本文介绍了如何在 Joomla 组件(表)中添加可排序的列,ASC 和 DESC 都带有箭头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我已经完成了教程,http://docs.joomla.org/Adding_sortable_columns_to_a_table_in_a_component>

                当我按照那里的所有说明进行操作后,我能够对列进行排序,但只有 ASC 方向并且没有箭头指示符.

                有谁知道如何同时启用 ASC 和 DESC 以及箭头图形指示器?

                非常感谢.

                解决方案

                在文档中它是这样说的:ASC 就在那里.

                公共函数 getListQuery() {$db = JFactory::getDbo();$query = $db->getQuery(true);//...$query->order($db->escape($this->getState('list.ordering', 'default_sort_column')).' '.$db->escape($this->getState('list.direction', 'ASC')));返回 $query;}

                I have followed through the tutorial, http://docs.joomla.org/Adding_sortable_columns_to_a_table_in_a_component

                When I have followed all instructions there, I was able sort the columns, but with only ASC direction and there is no arrow indicator.

                Does anyone happen to know how to enable both ASC and DESC as well as arrow graphic indicator?

                Thanks a lot.

                解决方案

                In the documentation it says something like below: ASC is right there.

                public function getListQuery() {
                        $db = JFactory::getDbo();
                        $query = $db->getQuery(true);
                
                        // ...
                
                        $query->order($db->escape($this->getState('list.ordering', 'default_sort_column')).' '.
                                $db->escape($this->getState('list.direction', 'ASC')));
                
                        return $query;
                }
                

                这篇关于如何在 Joomla 组件(表)中添加可排序的列,ASC 和 DESC 都带有箭头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                Joomla include database functions(Joomla 包含数据库功能)
                nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)

                    <legend id='8cILt'><style id='8cILt'><dir id='8cILt'><q id='8cILt'></q></dir></style></legend>

                    <small id='8cILt'></small><noframes id='8cILt'>

                    <i id='8cILt'><tr id='8cILt'><dt id='8cILt'><q id='8cILt'><span id='8cILt'><b id='8cILt'><form id='8cILt'><ins id='8cILt'></ins><ul id='8cILt'></ul><sub id='8cILt'></sub></form><legend id='8cILt'></legend><bdo id='8cILt'><pre id='8cILt'><center id='8cILt'></center></pre></bdo></b><th id='8cILt'></th></span></q></dt></tr></i><div id='8cILt'><tfoot id='8cILt'></tfoot><dl id='8cILt'><fieldset id='8cILt'></fieldset></dl></div>

                      <tfoot id='8cILt'></tfoot>
                          <bdo id='8cILt'></bdo><ul id='8cILt'></ul>
                            <tbody id='8cILt'></tbody>