Coder Social home page Coder Social logo

Comments (6)

bzaruk avatar bzaruk commented on June 15, 2024 1

@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.

bzaruk avatar bzaruk commented on June 15, 2024

+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.

bzaruk avatar bzaruk commented on June 15, 2024

Hi @TheOriginalJosh - Sorry to bother you but I wonder if you will have any idea how can we fix it?

from nativescript-ng-shadow.

darkmantle avatar darkmantle commented on June 15, 2024

@shabib3 How did you get access to Shadow ? What import did you use?

from nativescript-ng-shadow.

darkmantle avatar darkmantle commented on June 15, 2024

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.

vahidvdn avatar vahidvdn commented on June 15, 2024

I have the same issue with nativescript-fresco. I think this relates to RadlistView component. Any workaround?

from nativescript-ng-shadow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.