Posts

html - How to make "configurable directives"? -

Say I have directive elements: & lt; Monkey-grid & gt; & Lt; // Monkey Grid & gt; Now, say that I want to include some "options" so that monkey-grid.tpl.html render in a specific function, and reuse it in different circumstances. can be done. & lt; Monkey-Grid Tabbed & gt; & Lt; / Monkey-grid & gt; & Lt ;! - Also tried - & gt; & Lt; Monkey-Grid Tocked = "True" & gt; & Lt; / Monkey-grid & gt; Then in my monkey-grid template, I want to do something like that, but it does not work, even if I have set it on the lie (hence the original element remains). I just want to show the appropriate div. & lt; Div & gt; & Lt; Div ng-show = "tabbed == true" & gt; Tab & lt; / Div & gt; & Lt ;! - Also tried - & gt; & Lt; Div ng-show = "vertical" & gt; VERTICAL & lt; / Div & gt; & Lt; / Div & gt; Is there a better way to create "c...

javascript - How Select text on mouseover and then put it into a variable for further use in php -

I need to fix as the web page When you hover over a paragraph , Has been placed in block variables with a share button and paragraph text. Can anyone help me with this? Here's what I got, but I do not understand why it does not work: $ ('. Line'). Hover (function () {$ ( '. Line'). RemoveClass ( 'hover'); $ (this). AddClass ( "hover"). Next (). AddClass ( "hover"). Next (). AddClass ( 'Hover'). Next (.) AddClass ('hover');}); $ ('. Line'). Hover (function () ($ ( '. Line'). RemoveClass ( 'hover'); $ ( "# shared-image"). Attachment (it); KappendTo ( "# Destination"); $ (this). addClass ( 'hover'). next (). AddClass ( 'hover'). next (). AddClass ( 'hover'). next (). AddClass ( 'hover');}); CSS: .line.hover {background-color: # 3333FF;} when you mouseover to get a group of speaking is applied to offset relative to the contai...

java - Convert an entrySet to an array -

मैं एक map & lt; स्ट्रिंग के entrySet () को परिवर्तित करना चाहते हैं, ऐप (या अर्रेइस्ट) के लिए आंकड़ा> । मानचित्र। प्रविष्टि & lt; स्ट्रिंग, सांख्यिकी & gt; [ ] प्रविष्टियां = स्टेटमैटिकमैप.इनट्रीसेट ()। ToArray (नया मैप। प्रविष्टि & lt; स्ट्रिंग, सांख्यिकी & gt; [0]); लेकिन यह कंपाइलर त्रुटि देता है: "नक्शा का एक सामान्य सरणी नहीं बनाया जा सकता है।" यहां तक ​​कि यह एक ही त्रुटि के साथ काम नहीं करता है: मानचित्र। प्रविष्टि & lt; स्ट्रिंग, सांख्यिकी & gt; [] प्रविष्टियां = नया नक्शा। प्रविष्टि & lt; स्ट्रिंग, सांख्यिकी & gt; [1]; लेकिन यह काम करता है: मानचित्र। प्रविष्टि [] प्रविष्टियां = नया नक्शा। प्रविष्टि [1]; कोई भी विचार कैसे इस तरह के एक सरणी या सूची बनाने के लिए? कोई भी विचार कैसे इस तरह के एक सरणी या सूची बनाने के लिए? आप ऐसा कर सकते हैं, हालांकि यह बदसूरत है। Map.Entry & lt; स्ट्रिंग, आंकड़ा & gt; [] प्रविष्टियां = (नक्शा। प्रविष्टि & lt; स्ट्रिंग, सांख्यिकी & gt; []) ...

scheme - Why do nested applications of cons construct improper lists? -

Do the nested apps of disasters create inappropriate lists? I am learning the plan and confused about it cons I have come to this answer: I know that when opposition is a list, then it adds the first logic to the top of the list (Opposition 1 (list2 3) => (1 2 3) I understand the following pair: (cons 2 3); 2.3 pair although I understand Can not find why the following expression creates inappropriate lists (1 1 2 .3); An inappropriate list I just can not express what is happening with the expression above Can you please expand on that? The illusion you are experiencing It's not unique. Just signaling is all this, and until you learn that notation, everything is confusing. First of all, let's begin with the proper lists. There are lists which are empty Chi would end with: (cons 1 (cons 2 (cons 3 '()))); = & Gt; (1 2 3) This list is a short story for (1 2 3) , indeed (1 2 3) : Originally a list where the last cons indicate...

Hibernate lucene search collections and enums -

I'm trying to implement a search feature in my application using Hibernate Search (Lucene). Simple searches are working correctly on string fields, but now things are more complete .... I hope you can give me some hints or samples. I have the following entities ... @Entity @ induced public class childclose {@Enumerated @Field (index = index.YES, analysis = analyze.YES , Store = store.YES) private enumetected eum type; .... // Hotter Setter} ============================== ========== @Entity @ Indexed Public Class Pantaclass {@ Index Embed List & lt; ChildClass & gt; children; // greater setter ...} =============================== ========= public enum EnumType {a, b, c} ========== ===================================== Now I search for example And try to find out: "Get a list of parents who have children. Child.enumtype = a" Can I do with the original SQL queries? You do not have to use @indaxed embedded on this code - I think y...

Refresh include page that load using forEach propertie in ZK framework -

I have to refresh the page in the included tag, but it is dynamically using it for every asset, it is my The code snippet is: & lt; Button onClick = "... include refresh page ..." /> & Lt; Tabbed ID = "TB" Orient = "vertical" & gt; & Lt; Tab & gt; & Lt; Tab; ForEach = "$ {vm.columnList}" label = "$ {each}" hflex = "true" /> & Lt; / Tab & gt; & Lt; Tabpanels & gt; & Lt; East = "$ {vm.columnList}" & gt; For TabPanel & Lt; Height = "90%" rc = "/ campaignss.zul" RCA = "$ {each}" date = "$ {vm.date}" /> & Lt; / Tabpanel & gt; & Lt; / Tabpanels & gt; & Lt; / Tabbox & gt; I want the button to be pressed when the button is pressed, the whole page will not reload, the whole page will not try to use the ID to use the invalid function, but the page An error is returned with the repeated ID using...

javascript - Angular: How to access parameters outside of $timeout callback? -

मेरे पास इस तरह एक टाइमआउट पाश है: var somedata = {autoRefreshInterval: 300, AutoRefreshInSec: 300, myTimeout: रिक्त, doRefresh: _doRefresh, onTimeout: फ़ंक्शन () {this.autoRefreshInSec--; अगर (this.autoRefreshInSec & lt; = 0) {this.autoRefreshInSec = this.autoRefreshInterval; this.doRefresh (); } This.myTimeout = $ टाइमआउट (this.onTimeout, 1000); }, StartTimer: फ़ंक्शन () {this.autoRefreshInSec = this.autoRefreshInterval; This.myTimeout = $ टाइमआउट (this.onTimeout, 1000); }, स्टॉप टायमर: फ़ंक्शन () {$ timeout.cancel (this.myTimeout); },} ऐसा प्रतीत होता है कि "यह" ऑन-टाइमआउट कॉलबैक फ़ंक्शन के अंदर काम नहीं करता है, जबकि यह startTimer और stopTimer के लिए ठीक काम करता है। इसे ठीक कैसे करें? अद्यतन करें: चूंकि यह नीचे दिए गए उत्तरों में से एक के आधार पर इन-टाइमआउट के अंदर खो गया है, मैंने इसे इस तरह से पास करने की कोशिश की: ऑन-टाइमआउट: फ़ंक्शन (स्वयं) {self.autoRefreshInSec--; अगर (आत्म। AutoRefreshInSec & lt; = 0) {self.autoRefreshInSec = self.autoRefr...