Skip to content

Creating a Google Places Autocomplete Add-On for Angular-Schema-Form #920

Open
@GenyaB

Description

@GenyaB

Hi,

I am trying to create an add-on that adds g-places-autocomplete to the input tag based on this library:
https://github.com/kuhnza/angular-google-places-autocomplete

I'm not sure if I am executing the instructions properly or what I am doing wrong.

Here is a plunker I made:
https://plnkr.co/edit/J1Jhe3kHLICPGkARX000

All that's supposed to happen is that when the user starts typing the google places autocomplete should appear (as it does if added normally to an input tag).

At the moment all that appears is your standard text input.

Here is how I am adding it to my form:
{
"key": "googleplace",
"type": "gplace"
}

Here is how I am adding it to my schema:
{
"title": 'googleplace',
"type": "string",
"x-schema-form": {
"type": "gplace",
"placeholder": "Start Typing..."
}
};

@json-schema-form/angular-schema-form-lead

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions