title

UI Router dynamic <title> tag

北城余情 提交于 2019-12-07 00:05:29
I'm adding a title to every state in the ui-router like that: .state('projects', { url: '/', templateUrl: 'projects/projects.html', ncyBreadcrumb: { label: 'Projects' }, data : {title: 'Projects'} }) And then the title attribute takes that data: <title ng-bind="$state.current.data.title"></title> How can I take data from the state parameters and add it to the title in the above example? I tried the following with no luck: .state('project', { abstract: true, url: '/projects/:projId', resolve:{ projId: ['$stateParams', function($stateParams){ return $stateParams.projId; }] }, controller:

Vue+element 动态生成导航栏方法(全)

十年热恋 提交于 2019-12-06 20:36:42
动态生成的思路 1.通过对标签的循环遍历生成导航栏 2.通过导航栏自身的递归调用形成 1.循环遍历生成的方法 先判断是否有对应的二级菜单再进行对应的循环 <el-menu class="first-navigation" :default-active="this.$route.path" router mode="horizontal" @select="handleSelect" > <el-submenu v-for="item in nav" :key="item.menuName" v-if="item.children" :index="item.code"> <template slot="title">{{ item.menuName }}</template> <el-menu-item v-for="children in item.children" : key="children.menuName" :index="children.code" >{{ children.menuName }}</el-menu-item> </el-submenu> <el-menu-item v-for="item in nav" :key="item.menuName" v-if="!item.children" :index="item.code"> {{ item

How can I add a title to c3.js chart

送分小仙女□ 提交于 2019-12-06 17:11:51
问题 Can any one suggest me the way of adding title to the C3.js line and bar charts ? I have got the following sample but it is for gauge chart. For any c3 chart is there any option to set the chart title? donut: { title: 'Title' } 回答1: You'd need to fall back to using D3 to add a chart title. Something like: d3.select("svg").append("text") .attr("x", 100 ) .attr("y", 50) .style("text-anchor", "middle") .text("Your chart title goes here"); 回答2: This was a top google result, so I thought I'd add

Vue基础,数据绑定,事件绑定

瘦欲@ 提交于 2019-12-06 14:23:19
<template> <div id="app"> <!-- 1.{{msg}}绑定数据--> <h2>你好vue--{{msg}}</h2> <br /> 这是一个根组件 <br /> <h3>{{obj.name}}</h3> <br /> <hr /> <!--2.数组循环遍历--> <ul> <li v-for="(item,index) in list"> <!-- index获取索引值--> {{index}}--{{item}} </li> </ul> <!--2.1数组嵌套遍历--> <ul> <li v-for="item in list1"> {{item.cate}} <ol> <li v-for="cars in item.list">{{cars.title}}</li> </ol> </li> </ul> <br /> <hr /> <!--3.条件判断--> <p v-if="no">现在你看到我了</p> <p v-if="true">现在你看到我了</p> <p v-if="ok">现在你看到我了</p> <br /> <hr /> <!--4.数据绑定--> <div v-bind:title="title">鼠标瞄上可以显示</div> <img src="//www.baidu.com/img/xinshouyedong

VUE:v-for获取列表前n个数据、中间范围数据、末尾n条数据的方法

久未见 提交于 2019-12-06 13:59:43
说明:   1.开发使用的UI是mintUI, 要求: 1.获取6到13之间的数据:items.slice(6,13) <mt-cell v-for="(item,index) in items.slice(6,13)" :title="item.title" :key='index'> <a :href="item.url" :title="item.title" class="list-url"> <img :src="item.src" :alt="item.title" class="list-img"/> </a> </mt-cell> 2.获取小于0到6之间的数据:(两种)   a:items.slice(0,6) <mt-cell v-for="(item,index) in items.slice(0,6)" :title="item.title" :key='index'> <a :href="item.url" :title="item.title" class="list-url"> <img :src="item.src" :alt="item.title" class="list-img"/> </a> </mt-cell>   b:v-if="index < 6" <mt-cell v-for="(item,index) in items" v-if=

Make UINavigationBar title editable

六月ゝ 毕业季﹏ 提交于 2019-12-06 12:14:52
问题 I'd like to implement such feature in my project. It is just like changing title of UINavigationBar in Interface Builder. It's not a problem in terms of programming (maybe adding shadow to UITextField text is a little challenge, but not that big). My question is: is it in compliance with App Store Review Guidelines & Human Interface Guidelines ? Do you know such apps in App Store, or have you submitted such apps to App Store by yourself? Thank you. 回答1: iA Writer does this in their iPad and

Get only PID from tasklist using cmd title

寵の児 提交于 2019-12-06 12:07:16
问题 Desired output: 1234 Just the PID. Nothing else - no other characters, numbers, or symbols. I'm trying to run tasklist so it gives me only the PID of a named or titled process. tasklist | findstr /i "cmd.exe" is the closest I've gotten, but the result is too verbose. I just want the PID number. Bonus points for linking me a description of what the tasklist filter operators mean - "eq", "ne", etc, since they aren't anywhere in the documentation. 回答1: The difficult thing with tasklist is its

Joomla 3 get the menu title

给你一囗甜甜゛ 提交于 2019-12-06 11:20:54
I'm using multiple menus on one page. In multiple divs I'm showing a menu (menu1 to menu6). For templating purposes I would like to get the menu title of each menu to show on top. I'm not managing to get the title from the menu. I found this is the way to get the menu items. <?php $menu = $app->getMenu(); $menu_items = $menu->getItems('menutype', 'menu1'); var_dump ($menu_items); ?> Couldn't be so hard but can't find the right syntax. Who could help me? Thanks in advance, Wims Lahmizzar Also you can use this one: $menu = &Jsite::getMenu(); $menuname = $menu->getActive()->title; or if already

Android NavigationView : not show full item and not truncate

[亡魂溺海] 提交于 2019-12-06 08:06:58
问题 Problem : NavigationView not show full text of menu item, also not truncate text . This item I see correctly - two words " Small title ": <item android:id="@+id/example1" android:icon="@drawable/filter_2" android:title="Small title" android:checked="false" app:actionLayout="@layout/menu_counter" /> /> And with next item - I see only first two words " Small title " without any truncate of next word " andveryverylongword ": <item android:id="@+id/example2" android:icon="@drawable/filter_2"

Dynamically change ViewPagerIndicator titles

空扰寡人 提交于 2019-12-06 06:31:35
问题 My current project uses some ListFragments to show rows of data. The rows get updated dynamically every some seconds. The amount of rows varies with every update and in every ListFragment . I would like to show the amount of rows to the user, and think that the perfect place for that would be next to the Fragment 's title in the ViewPagerIndicator . I provided a sample image for better comprehension: Sadly I am pretty clueless how to achieve this. I tried the following: public class