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 都带有箭头

      时间:2023-10-15
    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 都带有箭头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Joomla 升级 1.5.15 到 1.5.23 下一篇:向 joomla MVC 列表视图中的每个项目添加相关数据的计数

                相关文章

                  <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>