Kuix 的 listItem,获得焦点时候,加入效果:获得焦点时,显示全部标题;失去标题时,显示部分标题
实现:
xml:
...
<listItem style="layout:borderlayout;gap:5 0" onAction="show" onfocus="itemfocus(this)" onlostfocus="itemlostfocus(this)">
<picture src="shop_list.png" style="layout-data:bld(west)" />
<container style="layout:inlinelayout(false,fill)">
<text>
<_visible>true</_visible>
营销、财会、行政、人事、文秘类人才交流专场
</text>
<textarea style="layout:inlinelayout(false,fill);bg-color:#EEEEEE" >
<_visible>false</_visible>
营销、财会、行政、人事、文秘类人才交流专场
</textarea>
<text class="small">2011年4月16日</text>
</container>
</listItem>
...
frame.onAction:
...
if ("itemfocus".equals(identifier)) {
if (arguments[0] instanceof ListItem) {
ListItem listItem = (ListItem) arguments[0];
listItem.getLastChild().getChild().setVisible(false);
listItem.getLastChild().getChild().next.setVisible(true);
}
return false;
}
if ("itemlostfocus".equals(identifier)) {
if (arguments[0] instanceof ListItem) {
ListItem listItem = (ListItem) arguments[0];
listItem.getLastChild().getChild().setVisible(true);
listItem.getLastChild().getChild().next.setVisible(false);
}
return false;
}
...
分享到:
相关推荐
Packageindex Gtk.......................................................................................................................................................................................3...
ListItem:=ListView1.Items.add; ListItem.Caption:=IntTostr(HeapList.th32HeapId); Listitem.SubItems.Add(format('$%p',[Pointer(HeapStruct.dwAddress)])); ListItem.SubItems.add(format('%d字节',...
<asp:ListItem>C.on the one hand, on the other hand</asp:ListItem> <asp:ListItem>D.in one part, in the other part</asp:ListItem> </asp:RadioButtonList> ...
→得到当前被选中行的行的行号以及删除当前行: For i:=0 to ListView1.Items.Count-1 Do If ListView1.Items[i].Selected then //i=ListView1.Selected.index begin ListView1.Items.Delete(i); //删除当前选中...
ZK-1277: Group and listgroup components should be set as the same height as row and listitem components ZK-1273: Add a way to listen onOrientationChange for tablet device ZK-1283: Grid/List/Tree ...
react demo
<asp:DropDownListID="dropSinger"runat="server"> <asp:ListItem>五月天</asp:ListItem> <asp:ListItem>宗盛</asp:ListItem> <asp:ListItem>梁静茹</asp:ListItem> <asp:ListItem>惠妹</asp:ListItem> <asp:...
修复小部件:listitem.svg,scrollwidget.svg 无限GTK 文件更正:gtkrc 变更日志:2020年11月13日。 等离子主题“无限等离子”和“无限固等离子” 固定的小部件:background.svg,panel-background.svg 图标更正...
-部分ExtAspNet控件的设计时支持(会在后续版本中逐步完善)。 -v0.2beta2版本中关于PersistChildren(true)的描述有误,这个是设计时属性,和运行时是否保持状态没有关系。 -修正CheckBox控件的CheckedChanged...
-部分ExtAspNet控件的设计时支持(会在后续版本中逐步完善)。 -v0.2beta2版本中关于PersistChildren(true)的描述有误,这个是设计时属性,和运行时是否保持状态没有关系。 -修正CheckBox控件的CheckedChanged...
// List.vueimport ListItem from './ListItem.vue'export default { name : 'List' , subComponents : { Item : ListItem }}背景看到此问题:安装 # Yarnyarn add vue-component-register# npmnpm i vue-component...
Duilib中 ListItem布局切换效果实现,类似QQ好友列表,鼠标点击和经过都有不同的显示效果
ListView动态加载listitem
ASP.NET实现Gridview隐藏/显示列源码 介绍: 这篇文章演示如果让用户有显示/隐藏他们需要的GridView的列的功能,这是非常有用的,因为在GridView的所有列并不是每个的用户都需要的.用户想根据自己的需求看到想要的...
JFreechart存储为PDF不能显示中文文字的解决办法. <br>注:JFreechart各版本类的位置可能不样,请注意对应版本。我在JFreechart 1.0.9下测试成功!
Android ListView添加两个Button焦点获取 listview 放弃焦点 让Button获取焦点 很简单的一个demo 点击相应 我没弄 也很简单 焦点都给你获取了 点击都不会做 我也没办法了 百度了这么久 自己写了个 希望能帮到大家
android中拖动ListItem的源代码。可以4.03下完美运行的哟。
android listview综合使用示例_结合数据库操作和listitem单击长按等事件处理 欢迎访问我的博客对代码进行交流: http://blog.csdn.net/lk_blog
WPF引入了“无外观控件”的概念。现在开发人员可以基于功能而不是外观来选择控件。外观可以自定义以满足开发人员的需要。Todd Miranda演示了如何使用模板来自定义ListBox中ListItem的外观。
OptionGroupValue为默认值时:SmartDropDownList.Items.Add(new ListItem("中国", "optgroup")); 联动复选框(复选框的全选和取消全选)。选中指定的父复选框,则设置其所有子复选框为选中状态;取消选中指定的父复...