深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 686|回复: 3
打印 上一主题 下一主题

Radphp的MList控件分析

[复制链接]

800

主题

1379

帖子

7704

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7704
跳转到指定楼层
楼主
发表于 2020-8-30 23:15:45 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
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.  

Control the Theme and color variation of a MList with the MobileTheme component associated to it.
With DividerTheme a MobileTheme can be associated to all the dividers included in the MList
ExtraButtonTheme allows you to associate another MobileTheme component to the Extra Button of every element on the list.
Change the SystemIcon of the Extra Button to a different icon.
Select your own Icon for the Extra Button.
Indicate the Type of list: tOrdered or tUnordered
With isFiltered we'll add a filter Bar on the top of the list
isWrapped wrapps the list with a grouped style.
use Items to add elements to the List. Every item has the following attributes:
Caption Text to display, HTML are tags allowed.
Link Url of the page to load.
MList Select a Mlist from a list of the available MLists on the form to include a nested MList.
ExtraButtonHint Alternative text for the Extra Button.
ExtraButtonLink URL of the Extra Button.
isDivider Will make this element a list divider.
CounterValue Numeric input that will display on the right side of the element.
Thumbnail Image to use as thumbnail on the right of the element
isIcon indicates that the Thumbnail image is an icon and will be displayed in a diferent way. It spects a 16x16 icon.

回复

使用道具 举报

800

主题

1379

帖子

7704

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7704
沙发
 楼主| 发表于 2020-8-30 23:17:55 | 只看该作者



回复 支持 反对

使用道具 举报

800

主题

1379

帖子

7704

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7704
板凳
 楼主| 发表于 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.     }
复制代码


回复 支持 反对

使用道具 举报

800

主题

1379

帖子

7704

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7704
地板
 楼主| 发表于 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. )
复制代码


回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-5-5 02:02 , Processed in 0.034570 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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