Questions tagged [extend]

Cause a unit of code (a class in POO, a style class in CSS ...) to cover a wider area.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Extendable card in jetpack compose

How can implement extendable card which extend over layout underneath not move it. For example compose has card and column underneath. After click on card, extended card must hide column under ...
Slava's user avatar
  • 475
0 votes
3 answers
82 views

Service in Angular is instantiated twice when extending the service with another service

In my Angular project, I have a setup with multiple services. One service has some functions for which I want to restrict access, so that it can only be used from one specific other service. To ...
joost's user avatar
  • 21
1 vote
2 answers
164 views

How to easily extend Jetpack Compose components?

I want to make a custom implementation of ScrollableTabRow which allows for a composable element to be displayed 'sticky'ly at the right end of the tab row. But I can't figure out a simple way to ...
Anchith Acharya's user avatar
0 votes
0 answers
16 views

Best way to set up test suit so that test cases can be used across different classes. using Java

I am writing a test suit in selenium using java language. I use the TestNG annotations and Maven repository to manage dependencies, currently using Eclipse and the project is hosted on GitLab. I have ...
ECAndroidSubs's user avatar
0 votes
2 answers
164 views

In Flutter, how to extend the bottom-most widget to the bottom of the screen (when conditionally required) when it is within a SingleChildScrollView?

I am working on my first Flutter app (in Android Studio) and I have wasted many hours trying to accomplish the following (including reading every StackOverflow post and webpage I could find). My ...
JRose's user avatar
  • 21
0 votes
0 answers
29 views

Extend already compiled flutter application functionality through plugins

Is it possible to extend the functionality of an already compiled flutter application by plugins or modules developed/compiled by other developers and placed in a specific folder inside, for example, ...
Albert's user avatar
  • 56
0 votes
0 answers
271 views

Undefined class 'Widget'. Try changing the name to the name of an existing class, or creating a class with the name 'Widget'. Error

I get this error when I try to debug my code in vs code. Here is a link to my repo: https://github.com/allanjchiang/flutter/tree/main/my_app Here is my lib/main.dart file code: import 'package:flutter/...
Allan Chiang's user avatar
0 votes
0 answers
46 views

Siebel Open UI - View Applet not able to extend Applet PR

We are facing issues while trying to extend existing vanilla TileLayout Applet PR to a custom View PR. We have tried multiple ways suggested by oracle to extend an Applet PR to another Applet PR but ...
Harshita Paliwal's user avatar
1 vote
0 answers
255 views

TypeError: Class extends value undefined is not a constructor or null. (React application)

When I start my React application. I get the following error: ERROR Class extends value undefined is not a constructor or null TypeError: Class extends value undefined is not a constructor or null ...
Keydoo's user avatar
  • 57
2 votes
0 answers
62 views

Can't set rotation using extended class

I want to implement a children class to modify the map orientation. I have a main.js file exporting 'MainMap' : import './style.css'; import 'ol-ext/dist/ol-ext.min.css'; import {Map, View} from 'ol'; ...
vprint's user avatar
  • 49
0 votes
1 answer
109 views

Extend "Is valid Xhtml" validator for Rich Text Field in Sitecore

The "Is valid Xhtml" validator for Rich Text Field in Sitecore does not accept Html valid attributes like: role, aria, data-... etc. Trying to find a solution over the internet led to the ...
Viktor Slapik's user avatar
0 votes
0 answers
27 views

How to hook jinja %include% and %extend% handlers?

Before jinja handles my templates I want to make some preparations. It would be good override some method like: def OnBeforeInclude(filename: str, context: str, render_args: dict) -> str: ...
VladVons's user avatar
0 votes
1 answer
132 views

Extend AD accounts for 6 months in PowerShell via Text file to output new user expiry date into CSV

I have and little command that will extend AD accounts for 6 months (define the date) for each user in a text file: Get-Content C:\adextensions.txt | Set-ADAccountExpiration -DateTime "09/16/2023&...
S.Mahmood's user avatar
  • 129
0 votes
2 answers
61 views

How do I emulate hide.bs.modal without bootstrap using jquery or javascript

I'm using jquery 1.11. Old code. I'm trying to emulate hide.bs.modal and eventually, hidden.bs.modal, show.bs.modal and shown.bs.modal. Code: (function($) { var oldshow = $.fn.show; var ...
Chris's user avatar
  • 710
-1 votes
1 answer
40 views

Questioning the order in which the code is executed [duplicate]

So I stumbled across this piece of code (Java - Constructor does not explicitly invoke a superclass constructor, Java does not insert one either)... public class App { public static void main(...
dog bytes's user avatar
1 vote
1 answer
100 views

DevExpress XPO Table Extend and common column persistent

I am developing an Application using DevExpress XPO which has PostgreSQL database. I have a class OrderBase and and another class OrderDetails which extends OrderBase. OrderBase has a column ...
Stavros Koureas's user avatar
1 vote
1 answer
213 views

How to read this UML diagram?

I work in the aviation industry, and I am trying to understand this UML diagram. I did a little bit of UML in college. Can you help me to interpret this diagram? What is the difference between <&...
favrett's user avatar
  • 13
0 votes
2 answers
218 views

How to make the div be edge to edge with sides of the viewport? [closed]

[Edit] I'm building a basic survey form for a Freecodecamp exercise and would like the top div container to reach the edge of the viewport on both sides, but there is a gap on the left-hand side. I ...
monstermind's user avatar
0 votes
0 answers
38 views

Using @extend in @for or @function in Sass to mixing attribute

In css, We can mix classes together with commas and give a same attribute. It makes the final CSS smaller. So, I have this code in a Normal CSS: input:nth-child(1):checked ~ .tab:nth-child(1), input:...
Moein Soheil Sani's user avatar
0 votes
0 answers
19 views

AngularJs view not updating when parent property is changed from child controller

I'm trying to play around with extending controllers so the same code can be used in multiple places but extended with additional functionality where required. eg. when some functionality is available ...
user21147044's user avatar
0 votes
0 answers
169 views

CommonJS: require class and extend class

I'm a bit struggling with the JavaScript classes (CommonJS). I've got a class in a javascript 'module' which I can import to another js file using: DucoMaster.js: class DucoMaster { constructor(...
tjarco's user avatar
  • 3
0 votes
0 answers
37 views

How to extend RPi3 root partition with unallocated space

I have RPi3B/RPi3B+ devices. I usually use in it 16GB SD cards. I have sd card image (becasue there is a lot of stuff to reinstall everything for next device) taken from that sd cards. Now I need to ...
KyluAce's user avatar
  • 943
2 votes
1 answer
4k views

Override 65ch max-width in Tailwind CSS Typography

I am using a Jekyll template with Tailwind and Typography, and I am interested in overriding the default max-width 65ch limit on each line. The default setting was max-w-prose, and I have tried ...
John Karkas's user avatar
0 votes
1 answer
129 views

How do I add possible values to existing union type declared in standard library in TypeScript?

Consider this PermissionName type declared in lib.dom.d.ts: type PermissionName = "geolocation" | "notifications" | // More... Can I somehow add a value to it from my own app.d.ts ...
Luke Vo's user avatar
  • 18.6k
-1 votes
1 answer
24 views

why does my for loop keep on removing the append element [duplicate]

so I am trying to create a list that have different list as it element the for loop bellow will extend an element to the bag then append it to the list bag and finally remove the extended element to ...
phuc 's user avatar
1 vote
2 answers
401 views

Using `extend self` and `class << self` in Ruby Modules

I sometimes write modules that will only contain module methods (as opposed to module instance methods) (are there better names for these?). These modules should not be included in classes because ...
Keith Bennett's user avatar
0 votes
1 answer
182 views

How can Java class extend Kotlin library

How can Java class extend Kotlin library? I understand what all kotlin classes are final. I have library and I need to override some methods. But then I extend library, I'm getting error public class ...
Slava's user avatar
  • 475
0 votes
2 answers
253 views

Extend and override default lighthouse directive

Is there anyway that I can override a directive like: src/Schema/Directives/WhereDirective.php for instance this doesn't support some methods on my custom builder, I know I can make another directive ...
Steve Moretz's user avatar
  • 2,908
2 votes
1 answer
700 views

Is it possible to extend react table v8 API using typescript

I am trying to extend react-table v8 api with custom functions. In the docs are saying that it is possible to: declare module '@tanstack/table-core' { interface TableMeta<TData extends RowData>...
Alex's user avatar
  • 21
1 vote
1 answer
273 views

How do I add a variable/variables to a list

I need to find a way how to append a person (form inputs I got) to a list. I always get:<main.List object at 0x0000027FD63B6B60> class Person: def __init__(self, name, surname, age, ...
NikaFZ6's user avatar
  • 11
0 votes
1 answer
2k views

Extend data to int value from string - Retuning no results in extended column

Hello knowledgeable KQL people, I am looking to run a comparison against the software version within the DeviceTvmSoftwareInventory table in "Defender 365 Advanced Hunting". ALL of the data ...
Sean Vucich's user avatar
0 votes
2 answers
77 views

Scala overriding Java fields and members

I'm trying to extend the class A which is written in Java to class B in Scala. class A { private Pattern pattern; private String regex= "folder1/folder2/folder3/.*"; A(...){ ...
Good Panic's user avatar
1 vote
1 answer
974 views

Override type of property inherited from parent class in TypeScript

I'm very curious about how to do this, my goal is to inherit all the functionality of a base class and modify or extend it, for example: class myFirstClass { attr1: string; attr2: number; ...
Hex's user avatar
  • 414
0 votes
1 answer
37 views

Edit python builtins classes

I want to edit python builtin classes and make something like Extension methods in Dart language. extension NumberParsing on String { int parseInt() { return int.parse(this); } } any work ...
Mohammad Aboul-Ela's user avatar
0 votes
1 answer
63 views

SASS custom value isn't working on focus elements

I am trying to add a focus styling to an element. However, I have ::focus and a class .focus. Since I'm using SASS thought it would be easier to create my own style value then @extend it to the two ...
Jason_C's user avatar
  • 41
-1 votes
1 answer
37 views

How to upgrade parent class with one function named with the classname to 8.1 without editing every child class that calls the function?

class tableBlock { var $table_border = '0'; var $table_width = '100%'; var $table_cellspacing = '0'; var $table_cellpadding = '2'; var $table_parameters = ''; var $...
teaman's user avatar
  • 1
0 votes
2 answers
44 views

Html is not extending correctly only base.html

When trying to extend from base.html my home.html is not showing when at the url that shows home.html only the base.html is showing. I can't seem to figure out what the problem without extending my ...
Jane Smith's user avatar
0 votes
2 answers
73 views

Add items to array (C#)

I got some newCity: ObservCity newCity = new ObservCity () { id = localCityId, entries = somecity.ToArray() }; Now I load saved city: ObservCity loadOldCity = await myService.loadCity(id); How to ...
4est's user avatar
  • 3,070
0 votes
1 answer
95 views

Create and fill new array with data, if the current array extend its size of certain columns

in advance: i apologize for this may stupid and easy question. heres my problem: im currently working with huge data packages and have to extract specific values into an array. The code (which i ...
Julicode's user avatar
1 vote
1 answer
136 views

Dart cannot override function in generic class with subclass of generic

I am writing an app which deals with both cryptos and stocks. Because they share many common characteristics such as symbol, price, name etc, I created a base class 'instrument' then subclasses for ...
Pinocchio's user avatar
1 vote
1 answer
35 views

How to replace str rather than substring in pandas

I have a column of School Name that contains both "Pri" and "Primary" (e.g. "XYZ Pri School", "DWQ Primary School") in a pandas dataframe. I would like to ...
James's user avatar
  • 13
0 votes
1 answer
27 views

extending standard html table

Is there a way to extend a standard HTML table with certain methods and events ? In example, I would like it to recognize key press (up, down, pagedown, pageup, go top, go last, go left, go right). Is ...
Antonio Linares Cañas's user avatar
0 votes
1 answer
195 views

SCSS Inheritance with parameter

I'm using inheritance to set some styles. The whole context is into a mixin. For that reason, I cant define another mixin with parameter. Is there some option, to place parameter in the %ImgSize ...
spiegelbirke's user avatar
1 vote
2 answers
113 views

adding rows in datasets for missing values with R

I am working with R. i have a list of datasets where each of those sets should have a row length 5 for each month (Jan-May). it should look like this: data.frame(name = rep("B", 5), ...
Kata's user avatar
  • 11
4 votes
2 answers
995 views

Extended vs Generalization in Use Case

I have read this post: Use case generalization versus extension. I have 2 cases below. Case 1 Case 2 Update movie only happens when at least one of three use cases happens. In generalization ...
Haru's user avatar
  • 79
0 votes
1 answer
35 views

How to include Hover in my @extend as a shared style?

Like the title says, how do I go about adding hover to my @extended styles? I will add a link to my Codepen here: https://codepen.io/UserBrayann/pen/gOvmzwN SCSS %box-shared { box-shadow: 4px 3px ...
user avatar
0 votes
2 answers
3k views

How to append a list to another list in a python for loop when each element of the existing list is being changed inside the for loop?

I am trying to write a code which will create modified lists in a for loop every time and append it to a new list. For this, I tried creating an empty numpy array with two elements which are to be ...
Priyankush Ghosh's user avatar
2 votes
1 answer
433 views

Laravel 9: How to extend UrlGenerator core class

I'm trying to extend the UrlGenerator class in order to add a custom temporaryTenantSignedRoute and then use it like this : Url::temporaryTenantSignedRoute(...) So, I've created a class ...
BKF's user avatar
  • 1,298
0 votes
1 answer
581 views

Extending Vuetify's VBtn component to create a reusable icon button component

I've been using the example Codepen (https://codepen.io/whoistobias/pen/yLNgjwy) to try to extend the Vuetify VBtn component to create a reusable Button Icon component. I'm awfully close, but as usual ...
Neil Merton's user avatar
1 vote
1 answer
831 views

Issue with KQL / Kusto distinct, extend and project

I don't really understand what's the issue if you want to use the command distinct and distinct count AFTER a project or extend operators. let planting_table = ['events.all'] | where ...
ianux22's user avatar
  • 395

1
2 3 4 5
31