Questions tagged [button]

14608 questions
1

votes
2

answer
1.5k

Views

By default open ion-fab-list

I need top open ion-fab-list open by-default when the ionic page loads. Please provide some help. I have tried following solutions but did not work: 1. write (click) event on fab-button in .html and call event from .ts. ionViewDidEnter() { this.calculateButtons(); } calculateButtons() { // butto...
Punita
1

votes
2

answer
674

Views

Selenium find element_by_id not working with radio buttons

So I've been working with Selenium in Python. I finished my code (which worked at the time) but suddenly it chose not to work anymore. To be specific: If I try: driver.find_element_by_id('leasingtrue').click() It returns me the error: selenium.common.exceptions.ElementNotInteractableException: Mes...
user9349795
1

votes
3

answer
39

Views

How to click automatically in a button when user coming to page

import React from 'react'; checkClick = () => { console.log('clicked'); }; class Test extends React.Component { render() { return ( click ); } } export default Test; How to click automatically on a button when user coming to page? Here I want to click automatically above button. I tried with: docume...
soubhagya
1

votes
2

answer
139

Views

Clilcking on a button is giving a Bad Path error

I'm trying to make a pen which incorporates the javascript exercises I'm learning. Here is the Pen: https://codepen.io/ychalfari/pen/JVYoNW In this specific case I'm trying to accept an array from an input and run a function which sums the array when you click the button, and the result should show...
Yitz Chalfari
1

votes
1

answer
38

Views

How to disable and enable a button dynamically?

In my UWP, I have a TextBox and a Button. I want to disable the Button when the TextBox is empty. I tried this on startup- if (string.IsNullOrEmpty(hmmtxtBox.Text)) { hmmbtn.IsEnabled = false; } private void HmmtxtBox_TextChanged(object sender, TextChangedEventArgs e) { hmmbtn.IsEnabled = true; } I...
Mahmudul Hasan
0

votes
4

answer
38

Views

A simpler way to code this onclick background change - HTML/CSS

Is there a way to simplify this code? I just find it too long for a simple function. I tried to use querySelectorAll(), but I had a hard time trying to re-code it. Please see snippet included. I tried to look for a simplier way, unfortunately I am unable to find any. function myFunction() { var mor...
pjustindaryll
1

votes
3

answer
9.9k

Views

Use Buttons In Table - PHP

I'm following through a tutorial from a book I have but want to add some extra columns to a table. I have added the columns, buy and sell, and in each of those I want to display a button. I am unsure of how to do this, is it possible? Here's my code from the page with the table:
MalvEarp
0

votes
0

answer
7

Views

How to disable button if dynamic textbox are empty

I have disabled my submit button to avoid submission when textbox are not filled. I have multiple dynamic textbox where the function works correctly. But upon adding another row of textboxes, the submit button is already enabled. How can I still disable the textboxes when the user decides to add ano...
Blue Minnie
1

votes
1

answer
3.9k

Views

Event handler function to wxButton with Bind() - wxWidgets 3.0

I am trying to create a simple, basic application to start off with wxWidgets. I can already set up a frame and put menu, menu items and buttons on it and it all displays properly. However I have troubles using Bind() to attach an event handler to the button. To strip the code a bit, I have this :...
James C
0

votes
1

answer
26

Views

How to keep a button focus when pressing another button?

PICTURES no hovering with hover I'm creating a rating system with some pictures (buttons) of smileys in angular. There are some questions for the user to answer by these smileys. Right now the smiley-button (holding an image) is hovering with different picture and focussing (on hover picture) when p...
esso
1

votes
2

answer
58

Views

Check radio button based on php variable

I am able to set the value of a text field from a php variable so that when the page is refreshed, the text field remains filled in like so:
Paradox
1

votes
1

answer
50

Views

How to locate/click selector (button) using testcafe

I am trying to test the submission of an application using testcafe. However, I don’t seem to be able to get testcafe to click the ‘Submit Application’. I have tried the following so far: .click(Selector('button').withText('Submit Applicaition')) .click('#submit-application').withText('Submit...
Milka
0

votes
0

answer
6

Views

button image is not show in rightView of UItextfield

I have created a button image and placed it on the rightView of a UITextField 'password' using Sa wift. I want to create toggle button hide/show secure text in the password field. The image shown on the right view. Code: func passwordToggleButton(){ let button = UIButton(type: .custom) button.setIma...
NinjaDeveloper
1

votes
2

answer
8.2k

Views

How to create oval button in WPF application?

Exactly as the subject, How to create oval button in WPF application?
AwkwardCoder
4

votes
2

answer
83

Views

Floating button(FAB) on React Native wont stay on top when a Modal, iOS Actionsheet, picker component is rendered

Using an absolute positioned button in the higher order component will serve purpose in normal use cases but when a modal/actionsheet/picker etc is rendered the button no longer stays on top.
Hariks
1

votes
3

answer
8k

Views

Android colour change of button at hover in android in eclipse

I am working on project of android in eclipse.Android version is 2.3.3. I had set my button colour and I can also change colour of button when it is clicked but when my cursor is on button , button colour have to change and as cursor moves away it should have the colour which it had previously , sam...
5extremers
1

votes
1

answer
476

Views

How can I prevent a button shrinking smaller than non-wrapping text using css?

Essentially I have a button with the word 'Delete' inside. It currently uses this css: .btn-delete { font-size: 32px; background-image: none; border: 1px solid transparent; border-radius: 15px; border-top: 0px; color: #fff; background: linear-gradient(to bottom, #ff0000, #d40000); vertical-align: mi...
Terry
1

votes
0

answer
51

Views

Java store onaction in mysql database

So I'm making a login system. Based on the role your account has when you log in, it displays role specific buttons. For instance if you login as an employee, you get to see two buttons called RequestStatus and RegisterMissing. If you login as a manager, you get to see the buttons RequestStatus, Reg...
JimSmith1457
1

votes
0

answer
26

Views

How to make icons appear on tapping of screen as in gallery app

When we run any gallery app we just open a photo. When tapping anywhere on screen , it generates a kind of snack bar in which there are many buttons like share,delete,edit,star,etc. When again tapping on screen all those items disappear simultaneously all together. Its a kind of snackbar at the top...
Tapesh Gupta
1

votes
1

answer
70

Views

Change Button Color based Comparison Modal Input Value And Target Input Value

I tried to google around to find a way to change button colour for below case: Let’s say I have an onclick Button where I click and it opens a modal box which contains an Input box and a Submit Button. If I input “90” in the Input box and submit it It will compare with my target value “100...
Mark Kho
1

votes
1

answer
179

Views

How to assign radioButton to ListView in android

In my application, I have a ListView to contain the 5 quiz questions and their answers from a json file in server. I want the choices to be Radio Buttons but when my application runs on the emulator, I can see the questions and answers but after clicking one of the radio buttons, some other question...
S.Grain
1

votes
0

answer
63

Views

RadioButton not changing it pressed state after clicked on other RadioButton

i am designing a layout for dialog fragment in which i have 8 RadioButton the problem is by selecting one button its changing its background but when i click on another RadioButton previous one is not going to its older state (Icon) this is my xml and this is my selctore default icon is arrow for u...
Mateen Chaudhry
1

votes
1

answer
95

Views

Android studio, subclass of AppCompatButton does not act like a button

I am working on an android app in java, and ive created a sub-class of android.support.v7.widget.AppCompatButton, because youre not supposed to directly subclass Button. When i create the subclass object (hencforth refered to as 'subButton') and add it to the activity via XML, the item looks and act...
GodOfPlutonium
1

votes
1

answer
225

Views

Hide buttons on HTML Web resource landing page, Dynamics 365

I have a Site Map link that opens up a Web Resource .html page. Everything works great except the 3 menu items highlighted which are there by default, but there is no need for them. Could someone help me to remove them? Note that Ribbon Work Bench didn't help me much.
Jeet Gandhi
1

votes
1

answer
28

Views

Kivy- different attributes for for loop generated buttons

I have been trying to make multiple buttons according to the number of files in a directory. And when each button pressed it should start to launch a different video file. I have for samples so far i can create 4 buttons but when i pressed it always triggers the last buttons on_release function. I h...
Berk
1

votes
1

answer
61

Views

Clicking on button opens blank screen

I'm trying to make a quiz app and everything was working fine until I put in my code for my second button, now when I click start nothing happens and clicking study brings up a black screen. Start is supposed to take the user to a different activity, and study is supposed to take them to a website....
Victini
1

votes
1

answer
87

Views

Set the display of my table with radio button using radio buttons mvc

well I searched on every web site but I didn't find what I want so : I will be easier for you, to see what I have : my page ;) So for each radio buttons, I want to set the display of my table. Ex : if I pick 'Alphabétique', the values sorted in alphabetical order. I knew I needed to use Ajax, but...
Léo Cordilla
1

votes
1

answer
150

Views

How to change the position of an element to left when a radio button is checked?

I want to change the position of an element to left when a radio button is checked.But this code is not working. if(document.getElementById('red').checked){ document.querySelector('.sliding-content').style.left = '-100%'; }
sum20156
1

votes
2

answer
68

Views

drop down on submit gives undefined - Angular4

I had designed following form with use of ngModel banana-binding, on click of submit button I can get values for all control, except drop down control. Also I'm not able to give default select option for all radio buttons used and it's same case with drop down control. I had defined mediaModel as...
Darshana Ahalpara
1

votes
0

answer
88

Views

how to show tabs on top in collapsing toolbar while scrolling

I have a layout with collapsing toolbar and tabs as shown in attached image below I want to show my tab layout on top while scrolling the list in anyone of the tabs I have tried some links link1 and end with below result as shown in image below I want to hide my toolbar ,profile image and textvi...
Sandeep dhiman
1

votes
0

answer
409

Views

Button inside of a google maps infowindow

Im trying to build a website where meteor lovers such as myself get a european map with all the meteor impacts over the last 200 years. when the map is initiated meteor icons will render into the map with the according information inside of a infowindow (after clicking on it) however, I wanted to ma...
Thomas
1

votes
0

answer
60

Views

Delphi Handle Android “Overview” button

Using Delphi Tokyo 10.2, is there a way to handle the OnClick event of the overview button (the button on the right of the android navigation bar)? I was thinking about something like the code above: procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; var KeyChar: Char; Shift: TShiftState);...
LLuca
1

votes
0

answer
410

Views

Populate PdfRadioButtonField using PDFSharp

I'm using PDFSharp version 1.50.4740-beta5 from http://www.pdfsharp.net which I installed from NuGet. I'm able to fill text form fields and checkbox form fields but I can't get radio buttons to work at all. I don't get an error. SelectedIndex is -1 before and after I set it to 1. Several at article...
Troy Turley
1

votes
0

answer
174

Views

Add custom button in radWizard

I am working with a rad Wizard with 3 steps and with the Cancel, Previous and Next buttton. The thing is i want that in the 2 step of the wizard to add another button for example 'Generate' and to remove Next Button. I googled and find some examples with localization but it doesnt work for me sinc...
Lara
1

votes
1

answer
162

Views

Button that returns dataframe

I have a Jupyter Notebook that contains a button, some dropdowns, and a dataframe. Essentially, selections are made in a dropdown, and after clicking the button, a dataframe containing values selected in the dropdowns is produced. My dropdowns work perfectly. However, my button does not return the...
Andrew Louis
1

votes
0

answer
144

Views

Tkinter changing the height of a button

Hi I am trying to create a button with the following features: B_home = ttk.Button(self, width=17, height=20, text='Home', command=lambda: controller.show_frame(main_menu)) When I run my code, I get an error saying: _tkinter.TclError: unknown option '-height'. I have read through tkinter documentat...
Momo 6aye3
1

votes
1

answer
187

Views

Button Pass Onclick Event

I have a button.tsx with a onClick property. import * as React from 'react'; interface Props { className?: string; text: string; onClick?(event: React.MouseEvent): void; type?: string; } const submitButton = (event: React.MouseEvent , props: Props) => { event.preventDefault(); props.onClick(event);...
1

votes
1

answer
1.7k

Views

Adding quick replies to web chatbot using dialogflow (api.ai)

I started to build a chatbot on my glitch server dealing with small talk questions using Dialog flow (api.ai). I used the code, which i copy paste on the bottom (index.html). Now I want to add quick replies. This is very simple for integrated chatbots (e.g. in Facebook) but not for webchatbots, so m...
Rainer Winkler
1

votes
0

answer
39

Views

Ruby on Rails link_to js function works only after manual call

I'm fighting with jquery draggable. I've created button which call function toggleDraggable(), but the problem is that the buton is not responding for clicking. I've tried to manually call the function through console and after this button is working fine. In the source I can see the file is loaded...
deczibru
1

votes
1

answer
366

Views

can't recognize method in MainActivity on Button Click [duplicate]

This question already has an answer here: Android cannot find method from button's onClick in ListView Row 4 answers I have a custom layout for every item in listview. But the button in the layout doesn't recognize the activity in MainActivity. The ListView is shown in Main View. The layout file fo...
Imad062

View additional questions