更新tabview时保留当前选项卡(Keep current tab when updating tabview)
我正在使用primefaces 4.0并且有一个带有4个标签的tabview。 当我单击其中一个选项卡中的某个按钮时,我想要更新所有选项卡,但保持选中当前选项卡。 但是,当我更新tabview时,选定的选项卡将继续设置回第一个选项卡。
更新整个tabview时是否有一种简单的方法可以保留当前选项卡?
I'm using primefaces 4.0 and have a tabview with 4 tabs. When I click a button in one of the tabs I want to update all of the tabs but keep the current tab selected. However, when I update the tabview, the selected tab keeps getting set back to the first tab.
Is there a simple way to keep the current tab when updating the entire tabview?
原文:https://stackoverflow.com/questions/19738979
最满意答案
ionic2中的警报组件仅支持输入,您无法为输入设置行属性。 检查多于1行的输入类型文本区域 。
相反, AlertController文档建议使用模态 。
The alert component in ionic2 just support input and you can not set row property for input. check more-than-1-row-in-input-type-textarea.
instead the AlertController document recommend to use modals.
相关问答
更多-
你应该将#id添加到tab然后检查要隐藏的内容,然后在css上执行。 没有其他办法。 This is what is working for me, thanks to @Flakerimi suggestion. .tabs .tab-item .icon.add-icon{ background-size: 38px 38px; height:38px; // margin-top: 2px; opacity: 1; } .center-tab{ span.tab ...
-
jquery输入自动调整大小(jquery input auto-resize)[2022-03-20]
工作js小提琴: http : //jsfiddle.net/NcwZA/1/ $('input').focus(function(){ if($(this).val()=='Enter info...'){ $(this).val(''); } //animate the box $(this).animate({ width: inputWdith }, 400 ) }); $('input').blur(function() ... -
刚刚找到了“解决方案”(更像是一种解决方法) 答案来自StackOverflow: 带有PhoneGap的iPhone上的位置许可警报 设备准备好后,您需要进行地理定位。 例如,以下Jquery代码将在没有令人讨厌的警报的情况下进行地理定位: $(function(){ document.addEventListener("deviceready", onDeviceReady, false); }) function onDeviceReady() { navigator.geolocation ...
-
调整Bootstrap警报(Sizing Bootstrap Alerts)[2022-02-01]
这是填充,使高度的差异。 在警报和关闭按钮上使用填充工具类 ... https://jsfiddle.net/ozuwpxux/This is a bit large!例如,如果您只想将元素设置为按钮,则可以采用此帖子的建议样式之一: http : //geniuscarrier.com/how-to-style-a-html-file-upload -按钮功能于纯的CSS / 或者CSS-tricks的另一个例子: https : //css-tricks.com/snippets/css/custom-file-input-styling-webkitblink/ 或者这个: http : //tympanus.net/codrops/2015/09/1 ...警报与阵列在离子2(Alerts with array in Ionic 2)[2020-01-20]
由于alert是通过使用带有选项的对象创建的,我们可以使用该对象来创建具有数组名称的单选按钮。 import { Component } from "@angular/core"; import { AlertController } from "ionic-angular/index"; @Component({ templateUrl:"home.html" }) export class HomePage { private names: Array; constru ... 看起来你也在使用UIRouter? 我马上就看到了两个明显的问题。 你告诉UIRouter去一个州'app.CarDetails',我在$ state配置中没有看到 你还没有宣布在你的州使用任何参数。 如果要使用参数驱动UI状态,则需要在URL中定义params或在状态上定义params对象。 我们假设您在单击该项目时想要转到“app.CarEdit”。 你的州看起来像这样: 网址驱动的参数: .state('app.CarEdit', { url: '/edit/{type}', .... ...显示加载,警报和日志的ionic2最佳实践是什么?(What is the ionic2 best practice to show loading, alerts and logs?)[2023-06-24]
我通常创建一个lib文件夹(或模块,如果你想要)。 然后,我创建了一些提供者。 对于警报,您可以创建提供程序: import { Injectable } from '@angular/core'; import { AlertController } from 'ionic-angular'; @Injectable() export class Alert { constructor( public alertCtrl: AlertController ) {} show(ti ...Ionic 2警报输入调整大小(Ionic 2 Alerts input resize)[2022-07-05]
ionic2中的警报组件仅支持输入,您无法为输入设置行属性。 检查多于1行的输入类型文本区域 。 相反, AlertController文档建议使用模态 。 The alert component in ionic2 just support input and you can not set row property for input. check more-than-1-row-in-input-type-textarea. instead the AlertController document r ...在表单内使用Ionic切换(Using Ionic toggle inside a form)[2022-12-20]
您只能在分配ng-model时使用它。{{option.title}} 如果您正在迭代模型列表,您可以尝试这样的事情:{{optio ... 相关文章
更多- [译文] 恶意软件行为综述 - A View on Current Malware Behaviors
- 微信Tab页切换
- 如何实现:一个Tab中的List点击某个Item后想把该项添加到另一个tab中的ListView中?
- tabPanel 选项卡位置问题
- 顶 Hadoop、Pig、Hive、Storm、NOSQL 学习资源收集【Updating】
- 微信Tab页
- ext TabPanel如何限制打开的最大tab数量
- fw:Hadoop、Pig、Hive、Storm、NOSQL 学习资源收集【Updating】
- Ext4.1 Tab组件双击页签关闭
- solr 索引更新
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)