Vote count: 0 Almost give up on Aurelia, I'm struggling with adding custom elements dynamic in Aurelia, lets say we have a custom tag: view my-element.html: My Element ${name} viewmodel: my-element.js: export class MyElement { @bindable name = ''; } so I try to manually add this tag, in another view: Remove another viewmodel: export class App { createMyElement() { //how to do it in here to create element // } } I looked this link https://gist.run/?id=762c00133d5d5be624f9, but it needs a container reference I dont want to specify a container, instead I want it to be append to current view. I also tried using aurelia-compiler from https://github.com/gooy/aurelia-compiler, when I try to import ...
ادامه مطلبVote count: 0 I am a developer in codiva.io a java ide for students. I am using codemirror editor. I want to track on edits (specifically a pause or timeout after last edit). I had previously used Google analytics, and for events, we will do ga.send(). Now I'm using Google tag manager, for clicks and other events it seems we can configure using tag manager ui itself. With tag manager, I'm not able to find how implement tracking for this. Codemirror generates an on change event. On each edit, clear any previous timer and setup a timeout trigger to run after 200ms. (The compilation will be dive at this point, and I want to make sure to track the number of times this event happened) asked 26 se...
ادامه مطلبVote count: 0 Ive followed this example from another SO thread: X-editable custom field type not respecting overridden defaults and its helped me to create a similar custom field with x-editable. All is working ok but i cant figure out how render/display the 'text' of the select - the SO example ouputs the 'value'. my js to initialis the x-editable to use my custom inputs is thus: $('#stffulladdress').editable({ url : '', pk : 6, value : { address : "", city : "", region : "", postcode : "", country : "eng" }, sourceCountry: [ { value: "eng", text: "ENGLAND" }, { value: "ire", text: "IRELAND" }, { value: "sco", text: "SCOTLAND" }, { value: "cym", text: "WALES" } ], validate : function(value)...
ادامه مطلبVote count: 0 I have a very strange problem. I have custom view that contains a uilabel and unbutton. I am using it as the TitleView on a navigation controller. Inside this navigation controller is a TableViewController that has a search bar. I am using a delegate method in the custom view to send a message to the navigation controller when the button is pressed. The button doesn't respond unless the search bar is active. When the search bar is active when I touch the title I see a NSLog statement in the controller notifiying me that the button has been pressed but when the search bar is inactive it doesnt respond anymore. Im posting the code I used to set up the title in the nav bar. -(void...
ادامه مطلبVote count: 0 I'm building a custom report using google analytics, a report that has 3 different tabs. I want to apply a different filter to each tab but when I change the filter in any of them, it automatically changes the filter in the other tabs. Is there a way of doing this or do I necessarily need to create another custom report to apply different filters? asked 21 secs agoDiego Agher Let's block ads! بخوانید...
ادامه مطلبVote count: 0 In IOS keyboards there is a globe button that if held will show a pop-up list of keyboards that the user can switch too. However in the KeyboardViewController class, the only method I see to make a keyboard switch button is the self.advanceToNextInputMode() The problem with this is that while it allows you to create a button that if clicked will switch keyboards this method does not allow you to create a button that if you press and hold will show the list of currently enabled keyboards that the user can switch to by moving their finger to the correct entry. How can I mimic the default IOS globe keyboard button behavior? asked 43 secs agoRoymunson Let's block ads! بخوانید...
ادامه مطلبVote count: -1 UITableViewCell Custom UIImageView asked 41 secs agoRodrigo Mantica Waid Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have designed a B-Tree and I am trying to make this B-Tree store variables of any data type in-built or user-defined and I am, thus, using template programming to design this data structure. I started out creating a B-Tree for storing unsigned ints in the RAM and ultimately got it to run and modified the program such that the data structure got read and written from/to the disk rather than physical memory. The current status of this project is that I have different classes for different data types such as int, string and user defined data types but in the process of coding the B-Tree I did not pay attention to the design of a vital inteal data structure of the B-Tree i.e. the...
ادامه مطلبVote count: 0 how to add a button and atext box in which when i click the button it calls a webservice in my custom admin menu page of prestashop, ie i am developing a admin module in which i created a menu and i am able to display grid with pagination the defalut prestashop grid in that page , but i want a button and a text box above the grid how to do this in prestashop 1.6. here is my controllers code: class QueryController extends ModuleAdminController { public $module; public function __construct() { $this->module = new querydr(); $this->addRowAction('view'); //$this->removeButton('add'); // this code to remove the add button $this->explicitSelect = false; $this->context = Context::getC...
ادامه مطلبVote count: 0 I am new to laravel and I got a question here. I am trying to inject 'IlluminateHttpRequest' to my custom Class. Error: __construct() must be an instance of IlluminateHttpRequest, none given, What is wrong with my code below? Thanks! namespace AppLibrary; use Crypt; use IlluminateHttpRequest; class MenuAccess { public function __construct(Request $request){ $this->request = $request; } public function setLoginSession($user){ $user = Crypt::encrypt($user); $this->request->session()->put('PAZPOSID', $user); retu $request->session()->pull('PAZPOSID'); } } asked 2 mins agoJohan Syah Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to create classes in C++ that use existing reserved application memory(via shared memory, arrays of bytes, etc of specific size in bytes) for their allocation algorithm for primitives and structs(rather than praying that the malloc finds the memory it needs). Is there a standard way to accomplish this, or do I have to invent such an algorithm myself? asked 42 secs agoDmitry Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am able to set up AWS WorkMail to receive and send email using custom domain e.g. john@mycompany.com Now I'd like to allow our users to login and access emails at https://mail.mycompany.com (instead of the AWS provided access url https://mycompany.awsapps.com). The document I can find seems only handle my first case (which is already done). Thanks asked 39 secs agowebp Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to make a custom navbar as shown in the image I mocked up. I've written this so far - My html - Toggle navigation Brand Home About Events Contact Play Video My Css - .navbar { background: url(../images/patte.png) repeat; background-color: white; } .navbar-brand, .navbar-nav li a { font-family: 'Josefin Sans'; font-size: 14px; font-weight: 700; line-height: 80px; height: 80px; padding-top: 0; -webkit-font-smoothing: antialiased; text-transform: uppercase; letter-spacing: .1em; color: #808080; } This looks like a normal navbar should. I don't know how to position the "Play Video" part and the links(home, about etc.) part with a separator in between them. Any ideas on how I...
ادامه مطلبVote count: 0 I'm creating a custom control for windows 10. I know that I can attach events to the TemplateChildren by using GetTemplateChild("Button") and then I can assign a method for example to the Tapped Event. Now I want to assign an Method to an event outside the Control .cs class. In Mainpage.xaml I can assign e.g. a Method to the Tapped event like this: . But how can I assign a method to a child of that control and not to the whole? Like for example I got a custom control with a grid and an Button, how can I only handle the Button Click Event in the Mainpage.xaml.cs file and NOT in the control file? I tried this in my Control .cs class: AppBarButton b; In the method which is loaded ...
ادامه مطلبVote count: 0 I have two React Native projects: company-ui and myApp. In company-ui I have our custom company font file, and a thin "wrapper component" of the React Native Text component (I call it StyledText), which sets the styling property fontFamily to this font file (fontFamily: 'myCustomFont').When ruing the project on devices, both iOS and Android, it works: the font gets loaded. Great. In the myApp project I have company-ui as a dependency. Due to it has custom fonts, I have used pm link to add the font files to the myApp project, so actually both company-ui and myApp have the font files in their project directories. The problem now: When I run myApp on Android, the font files are NO...
ادامه مطلبVote count: 0 I am begier for android now i'm developing one app but i don't know how to create splash screen with custom progress bar.so please help me how to create splash screen with custom progress bar. asked 27 secs agochandra Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have two tables, 'users' and 'subjects, with custom pivot table 'lecturers_subjects', I am trying to build many to many relationship with adding following code in Subject class: function users(){ retu $this->belongsToMany('AppUser','lecturers_subjects','user_id','subject_id'); } But then, when i'm trying to display users for certain subjects, it can't find users (array of $subject->users is empty) $subjects = Subject::all(); foreach($subjects as $subject){ var_dump($subject->id); //displays 1 foreach($subject->users as $user){ //array is empty var_dump($user->id); } } What am I missing? asked 3 mins agoMister M Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to make a desktop app with electronjs. For this I wanted to use custom elements.(not Polymer) But here is a note that the spec will be rewritten: https://developer.mozilla.org/en-US/docs/Web/Web_Components/Custom_Elements/Custom_Elements_with_Classes Spec for Custom Elements will be rewritten in early 2016. All current implementation are experimental and the upcoming standard will not be compatible with these. Web sites using Custom Elements are likely to be broken in the near future. Are there any updates in this? What will change? Are there new specs available? asked 2 mins agor03 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've got a custom view for my app named AvatarView: AdvancedRelativeLayout is just a superclass of RelativeLayout with a small fix, nothing special there. Then, I've created a view that uses my custom view: Nothing fancy either. But in the designer view of the second layout XML, I'm getting this: The editor displays my view hierarchy like it has a nested instance of itself, while clearly there isn't. If I delete either one, they both get deleted. If I declare attributes on one of them, other also gets it. They are clearly the same instance. The only exception is...
ادامه مطلبVote count: 0 I'd like to perform mediation with the AdMob Unity plugin. But I couldn't find any way to perform mediation with Custom Event. Is it possible? see also: googleads-mobile-unity, AdMob mediation support asked 1 min agoTakayuki Sato Let's block ads! بخوانید...
ادامه مطلب