深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz

Radphp的MList控件分析

查看数: 687 | 评论数: 3 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2020-8-30 23:15

正文摘要:

MList allows you to create an ordered or unordered list. Every element on the list can have up to two links, the secondary link will render as an Extra Button.MLists can be nested.   Cont ...

回复

zhgc 发表于 2020-9-1 15:37:22
MList的Items的数据结构:
  1. array (
  2.   0 =>
  3.   array (
  4.     'Caption' => 'Item1',
  5.     'Link' => '',
  6.     'Icon' => '',
  7.     'MList' => '',
  8.     'ExtraButtonHint' => '',
  9.     'ExtraButtonLink' => '',
  10.     'IsDivider' => 'false',
  11.     'CounterValue' => '',
  12.     'Thumbnail' => '',
  13.     'IsIcon' => 'false',
  14.   ),
  15.   1 =>
  16.   array (
  17.     'Caption' => 'Item2',
  18.     'Link' => '',
  19.     'Icon' => '',
  20.     'MList' => '',
  21.     'ExtraButtonHint' => '',
  22.     'ExtraButtonLink' => '',
  23.     'IsDivider' => 'false',
  24.     'CounterValue' => '',
  25.     'Thumbnail' => '',
  26.     'IsIcon' => 'false',
  27.   ),
  28.   2 =>
  29.   array (
  30.     'Caption' => 'Item3',
  31.     'Link' => '',
  32.     'Icon' => '',
  33.     'MList' => '',
  34.     'ExtraButtonHint' => '',
  35.     'ExtraButtonLink' => '',
  36.     'IsDivider' => 'false',
  37.     'CounterValue' => '',
  38.     'Thumbnail' => '',
  39.     'IsIcon' => 'false',
  40.   ),
  41. )
复制代码


zhgc 发表于 2020-8-30 23:36:19
用JS动态添加行的方法:

  1.     function MButton1JSClick($sender, $params)
  2.     {
  3.          ?>
  4.         //begin js
  5.           jQuery("#MList1").append("<li>syant</li>");
  6.           jQuery("#MList1").listview("refresh");
  7.            return false;
  8.         //end
  9.         <?php
  10.     }
复制代码


QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-5-5 04:01 , Processed in 0.028259 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表