Comments (6)
@devlfm -
I was able to workaround this issue with creating shadow to the element dynamically on itemLoading
event.
Like this:
HTML:
<RadListView class="full-stretch" [items]="items" (itemLoading)="onItemLoading($event)">
</RadListView>
TS:
public onItemLoading(args: ListViewEventData) {
Shadow.apply(args.view, { elevation: 7 });
}
from nativescript-ng-shadow.
+1
this is how my listview item looks
<ng-template tkTemplateKey="error" let-item="item.payload">
<Stacklayout class="light-background" margin="15, 15, 20, 15" shadow="7">
<Label class="slight-dark-color" margin="10" [text]="item.errorText"></Label>
</Stacklayout>
</ng-template>
ERROR TypeError: Cannot read property 'payload' of undefined
JS: ERROR CONTEXT {
JS: "view": {
JS: "def": {
JS: "nodeFlags": 50970627,
JS: "rootNodeFlags": 3,
JS: "nodeMatchedQueries": 0,
JS: "flags": 0,
JS: "nodes": [
JS: {
JS: "nodeIndex": 0,
JS: "parent": null,
JS: "renderParent": null,
JS: "bindingIndex": 0,
JS: "outputIndex": 0,
JS: "checkIndex": -1,
JS: "flags": 2,
JS: "childFlags": 0,
JS: "directChildFlags": 0,
JS: "childMatchedQueries": 0,
JS: "matchedQueries": {},
JS: "matchedQueryIds": 0,
JS: "references": {},
JS: "ngContentIndex": null,
JS: "childCount": 0,
JS: "bindings": [],
JS: "bindingFlags": 8,
JS: "outputs": [],
JS: "element": null,
JS: "provider": null,
JS: "text": {
JS: "prefix": "\n "
JS: },
JS: "query": null,
JS: "ngContent": null
JS: },
JS: {
JS: "nodeIndex": 1,
JS: "parent": null,
JS: "renderParent": null,
JS: "bindingIndex": 0,
JS: "outputI...
from nativescript-ng-shadow.
Hi @TheOriginalJosh - Sorry to bother you but I wonder if you will have any idea how can we fix it?
from nativescript-ng-shadow.
@shabib3 How did you get access to Shadow ? What import did you use?
from nativescript-ng-shadow.
Figured that out, yet it doesn't work for me either. There is still no shadow in the ListItem - even when removing all styling as I had a background set before.
from nativescript-ng-shadow.
I have the same issue with nativescript-fresco
. I think this relates to RadlistView
component. Any workaround?
from nativescript-ng-shadow.
Related Issues (20)
- Is this plugin works on Button? HOT 2
- Android shadow offset
- How to have both shadow and borderRadius? HOT 5
- Use over Layouts
- Disable Tab View shadow HOT 2
- Why set background on android? HOT 5
- Fix of Android SDK validation (>= 21) error not available with the npm package HOT 1
- Android issues
- Does binding to IOSData object work
- Cannot read property 'elevation' of null
- Could not find module after installation HOT 1
- Is it possible to specify background image for button with shadow???
- Doesn't Work With <Button>?
- Nativescript 7 HOT 2
- Nativescript 8 Compatibility issue
- Webpack failure HOT 13
- Does not check for Android API >= LOLLIPOP HOT 3
- Demo app doesn't work HOT 1
- No shadows on iOS HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-ng-shadow.