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

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

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

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