#swimlane/ngx-datatables do not have search option and pagination - angular13

I am having trouble integrating swimlane's ngx-datatables to my angular 13 application. I followed everything in here (https://stackblitz.com/edit/ngx-datatable-angular?file=src%2Fapp%2Fbasic%2Fbasic.component.ts), however my table looks like this. There's no search option and pagination.
Also, whenever I try to put [tableID] property in html, I am getting an error "can't bind to 'tableID' since it isn't known property of 'ngx-datatable'".
enter image description here
This is what I would like to have.
sample datatable with search filter and pagination
I hope I get a response and help me solve my concern. Thanks so much!

Related

I found something strange with Autocomplete as search functionality isn't working as expected (Or maybe I'm wrong)

I've implemented a basic search functionality using freeSolo material-ui, but I have a trouble when my array has two same titles. When I attempt to type 'a' I strangely get Woolies as one of the option. When you click elsewhere within the application and click on search box again, I get the correct output.
Confused how can I get rid of this bug.
Screenshot 1
Screenshot 2
REPO URL: https://stackblitz.com/edit/react-ovvfuz?file=demo.tsx
Any help would be greatly appreciated :)

I am adding the code in weebly but it dosent show up

Issue with JSON LD CODE
To start with I am trying to use this code in weebly, buy using embed code option and then I click on the edit custom HTML and enter this code. However, after entering this nothing shows up as in the recipe is not shown on the page and a blank page is shown.
this code is picked on schema.org, for recipes.
Could anyone please help me out in what exactly went wrong. I really appreciate your assistance. FYI- I am new to this. I am trying to set up my own food website and and wanted to schema to for SEO improvement. Any other suggestions are welcome. Thanks in advance.
Please refer this link for the JSON-LD CODE. IT WILL BE AT THE END OF THE PAGE. https://schema.org/Recipe
When you add a JSON-LD block in the HTML, it doesn’t change anything visibly on the page. The script element is hidden by default in all browsers, and you typically want to keep it like that (users typically have no interest in your JSON-LD code).
To check if adding the JSON-LD worked correctly, open the page in a browser and check the source code of the page. You should see the script element with your JSON-LD.
You have to add the content (that should be visible to your users) regularly with HTML. The JSON-LD exists next to your content (duplicating the data like name, photo URL etc.), it doesn’t replace your content.

AngularJS Issue With time Input Formatting

I am fairly new to AngularJS and am having an issue with formatting the time object to populate my "time" input field in Android and Firefox. I have spent hours trying to figure out the issue and also utilized AngularJS's documentation to try and figure this out, but have had no luck.
I am dynamically populating an input field from JSON, and the result is always in the following format: 14:57:00.000
I need it to look like this in the input field: 2:57 PM
Here is the link to AngularJS that I have been referring to: AngularJS time input. At the bottom of the page is the plunker to run.
Thank you in advance for any assistance you can provide me.
you can use something like this
{{myTime | date: 'shortTime'}}

Not able to select a dropdown value using selenium webdriver(Java)

I have no idea what is wrong in the simple code i have written to select a value from the dropdown. I have been watching other tutorials and code samples and i dont find any mistake in my code. Could someone please help me? I have tried running my code in Chrome as well as Mozilla(on two different OS) but still the issue exists.I am posting attachment of the html as well as selenium code.
Also, i am sure the problem is not because i have used wait because even if i comment that line or use it after loading the web page, the issue is there.
HTML
Selenium
Why don't you try clicking on the dropdown and then selecting the value.
tp.click();
and then
Select dropdown = new Select(tp);
dropdown.selectByValue("2");
new Select (driver.findElement(By.id("custtitle"))).selectByValue("2");
OR
new Select(driver.findElement(By.id("custtitle"))).selectByVisibleText("Mrs.");

style an element using an angular filter

I would like to style a couple of elements using a filter to decipher if it should be yellow or red.
I understand filters should not carry logic operations in them as such so am guessing a service is the first port of call before i create any filter for it.
I am leveraging data from a backend (still a bit unsure of the Backend model here, but know I can leverage certain objects to obtain the data needed for working on) I mostly need to know if i`m on the right path by using a service to control the logical outcome and then a filter to provide 'filtration' of that outcome.
BTW: sorry, im waiting for my project to checkout from SVN at mo so cannot provide a skeleton attempt.
Will do in a bit though .....
Any advice before hand will be much appreciated
:) Gruffy - thanks for reading
You can directly set the class attribute if you want, so your filter can simply return the CSS class to apply:
<p class="{{'foo'|myFilter}}">Foo</p>
Here's a fiddle showing what I mean.

Resources